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
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ public ParentUsername(Comment comment)
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
}
};
}