From 957b33b141b8d64aee4f28cfafe469ab0caf4aab Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Fri, 21 Feb 2020 18:41:03 +0900 Subject: [PATCH] Fix included comment properties not being set correctly --- .../Online/API/Requests/Responses/CommentBundle.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/osu.Game/Online/API/Requests/Responses/CommentBundle.cs b/osu.Game/Online/API/Requests/Responses/CommentBundle.cs index f4c81bf66f..d76ede67cd 100644 --- a/osu.Game/Online/API/Requests/Responses/CommentBundle.cs +++ b/osu.Game/Online/API/Requests/Responses/CommentBundle.cs @@ -35,6 +35,7 @@ namespace osu.Game.Online.API.Requests.Responses userVotes = value; Comments.ForEach(c => c.IsVoted = value.Contains(c.Id)); + IncludedComments.ForEach(c => c.IsVoted = value.Contains(c.Id)); } } @@ -58,6 +59,15 @@ namespace osu.Game.Online.API.Requests.Responses if (c.EditedById == u.Id) c.EditedUser = u; }); + + IncludedComments.ForEach(c => + { + if (c.UserId == u.Id) + c.User = u; + + if (c.EditedById == u.Id) + c.EditedUser = u; + }); }); } }