Ensure twitch emote names are escaped (#2543)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user