mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +08:00
Fix included comment properties not being set correctly
This commit is contained in:
parent
41c6d2f2e7
commit
957b33b141
@ -35,6 +35,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
userVotes = value;
|
userVotes = value;
|
||||||
|
|
||||||
Comments.ForEach(c => c.IsVoted = value.Contains(c.Id));
|
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)
|
if (c.EditedById == u.Id)
|
||||||
c.EditedUser = u;
|
c.EditedUser = u;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
IncludedComments.ForEach(c =>
|
||||||
|
{
|
||||||
|
if (c.UserId == u.Id)
|
||||||
|
c.User = u;
|
||||||
|
|
||||||
|
if (c.EditedById == u.Id)
|
||||||
|
c.EditedUser = u;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user