1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-19 07:07:18 +08:00

Handle parent usernames for legacy comments

This commit is contained in:
Andrei Zavatski 2019-10-09 11:18:26 +03:00
parent 0a56b041fd
commit a0dfbfe148

View File

@ -281,7 +281,7 @@ namespace osu.Game.Overlays.Comments
new SpriteText
{
Font = OsuFont.GetFont(size: 14, weight: FontWeight.Bold, italics: true),
Text = comment.ParentComment?.User?.Username
Text = comment.ParentComment?.User?.Username ?? comment.ParentComment?.LegacyName
}
};
}