Display authors name on hover for supported emotes (FFZ only for now) (#1721)

Co-authored-by: Paweł <44851575+zneix@users.noreply.github.com>
This commit is contained in:
Roger Chavez
2020-06-13 05:15:22 -07:00
committed by GitHub
parent f3f8b2d024
commit 1eeb09a78e
5 changed files with 24 additions and 9 deletions
+7 -1
View File
@@ -128,11 +128,17 @@ namespace {
auto id =
EmoteId{QString::number(jsonEmote.value("id").toInt())};
auto name = EmoteName{jsonEmote.value("name").toString()};
auto author = EmoteAuthor{jsonEmote.value("owner")
.toObject()
.value("display_name")
.toString()};
auto urls = jsonEmote.value("urls").toObject();
Emote emote;
fillInEmoteData(urls, name,
name.string + "<br/>Channel FFZ Emote", emote);
name.string + "<br/>Channel FFZ Emote" +
"<br />By: " + author.string,
emote);
emote.homePage =
Url{QString("https://www.frankerfacez.com/emoticon/%1-%2")
.arg(id.string)