From 5b28bc0dc91dda01697b80a544416e1ad7b111a2 Mon Sep 17 00:00:00 2001 From: jvyden Date: Wed, 24 Nov 2021 01:39:26 -0500 Subject: [PATCH] Update comment count to show comments posted on user's page --- ProjectLighthouse/Types/User.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectLighthouse/Types/User.cs b/ProjectLighthouse/Types/User.cs index a1d10c75..f783bb7b 100644 --- a/ProjectLighthouse/Types/User.cs +++ b/ProjectLighthouse/Types/User.cs @@ -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); } }