Update comment count to show comments posted on user's page

This commit is contained in:
jvyden 2021-11-24 01:39:26 -05:00
commit 5b28bc0dc9
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -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);
}
}