mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-04 19:08:42 +00:00
Update comment count to show comments posted on user's page
This commit is contained in:
parent
929e878680
commit
5b28bc0dc9
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ namespace LBPUnion.ProjectLighthouse.Types
|
|||
public int Comments {
|
||||
get {
|
||||
using Database database = new();
|
||||
return database.Comments.Count(c => c.PosterUserId == this.UserId);
|
||||
return database.Comments.Count(c => c.TargetUserId == this.UserId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue