From d41b518fc235d9e09ff5af5d422c18d88264d8b8 Mon Sep 17 00:00:00 2001 From: Slendy Date: Tue, 28 Mar 2023 20:25:26 -0500 Subject: [PATCH] Fix heart count on users in-game --- ProjectLighthouse/Types/Serialization/GameUser.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ProjectLighthouse/Types/Serialization/GameUser.cs b/ProjectLighthouse/Types/Serialization/GameUser.cs index 1698c4f9..90c32e80 100644 --- a/ProjectLighthouse/Types/Serialization/GameUser.cs +++ b/ProjectLighthouse/Types/Serialization/GameUser.cs @@ -171,6 +171,7 @@ public class GameUser : ILbpSerializable, INeedsPreparationForSerialization PlaylistCount = database.Playlists.Count(p => p.CreatorId == this.UserId), ReviewCount = database.Reviews.Count(r => r.ReviewerId == this.UserId), CommentCount = database.Comments.Count(c => c.TargetId == this.UserId && c.Type == CommentType.Profile), + HeartCount = database.HeartedProfiles.Count(h => h.HeartedUserId == this.UserId), PhotosByMeCount = database.Photos.Count(p => p.CreatorId == this.UserId), PhotosWithMeCount = database.Photos.Include(p => p.PhotoSubjects) .Count(p => p.PhotoSubjects.Any(ps => ps.UserId == this.UserId)),