1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 04:59:54 +08:00

Implement temp fix to get the actual message

This commit is contained in:
Andrei Zavatski
2019-10-08 13:31:49 +03:00
Unverified
parent 70e1d731ad
commit 4b1a40daba
2 changed files with 7 additions and 1 deletions
@@ -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);
}
}
}
+1 -1
View File
@@ -107,7 +107,7 @@ namespace osu.Game.Overlays
{
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,
Text = comment.MessageHTML,
Text = comment.GetMessage(),
},
new Container
{