mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 04:42:58 +08:00
Implement temp fix to get the actual message
This commit is contained in:
parent
70e1d731ad
commit
4b1a40daba
@ -76,5 +76,11 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
public bool IsTopLevel { get; set; }
|
||||
|
||||
public bool IsDeleted { get; set; }
|
||||
|
||||
public string GetMessage()
|
||||
{
|
||||
//temporary fix until HTML parsing will be implemented
|
||||
return MessageHTML.Remove(MessageHTML.LastIndexOf("</p>")).Substring(65);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ namespace osu.Game.Overlays
|
||||
{
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
Text = comment.MessageHTML,
|
||||
Text = comment.GetMessage(),
|
||||
},
|
||||
new Container
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user