Ensure twitch emote names are escaped (#2543)

This commit is contained in:
Paweł
2021-03-20 23:49:42 +01:00
committed by GitHub
parent 8f5adc0911
commit a893cdaebe
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ EmotePtr TwitchEmotes::getOrCreateEmote(const EmoteId &id,
if (!shared)
{
(*cache)[id] = shared = std::make_shared<Emote>(Emote{
EmoteName{name},
EmoteName{TwitchEmotes::cleanUpEmoteCode(EmoteName{name})},
ImageSet{
Image::fromUrl(getEmoteLink(id, "1.0"), 1),
Image::fromUrl(getEmoteLink(id, "2.0"), 0.5),