Skip to content

Commit

Permalink
Remove twitchemotes.com-related functionality (#3136)
Browse files Browse the repository at this point in the history
Co-authored-by: Paweł <zneix@zneix.eu>
  • Loading branch information
pajlada and zneix authored Aug 7, 2021
1 parent 961803d commit 54f6e4f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unversioned

- Minor: Remove TwitchEmotes.com attribution and the open/copy options when right-clicking a Twitch Emote. (#2214, #3136)
- Bugfix: Moderation mode and active filters are now preserved when opening a split as a popup. (#3113, #3130)
- Bugfix: Fixed a bug that caused all badge highlights to use the same color. (#3132, #3134)

Expand Down
2 changes: 1 addition & 1 deletion src/providers/twitch/TwitchEmotes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ EmotePtr TwitchEmotes::getOrCreateEmote(const EmoteId &id,
Image::fromUrl(getEmoteLink(id, "3.0"), 0.25),
},
Tooltip{name.toHtmlEscaped() + "<br>Twitch Emote"},
Url{QString("https://twitchemotes.com/emotes/%1").arg(id.string)}});
});
}

return shared;
Expand Down
6 changes: 1 addition & 5 deletions src/widgets/helper/ChannelView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,7 @@ namespace {
});
};

if (creatorFlags.has(MessageElementFlag::TwitchEmote))
{
addPageLink("TwitchEmotes");
}
else if (creatorFlags.has(MessageElementFlag::BttvEmote))
if (creatorFlags.has(MessageElementFlag::BttvEmote))
{
addPageLink("BTTV");
}
Expand Down
1 change: 0 additions & 1 deletion src/widgets/settingspages/AboutPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ AboutPage::AboutPage()
l.emplace<QLabel>("Google emojis provided by <a href=\"https://google.com\">Google</a>")->setOpenExternalLinks(true);
l.emplace<QLabel>("Emoji datasource provided by <a href=\"https://www.iamcal.com/\">Cal Henderson</a>"
"(<a href=\"https://github.com/iamcal/emoji-data/blob/master/LICENSE\">show license</a>)")->setOpenExternalLinks(true);
l.emplace<QLabel>("Twitch emote data provided by <a href=\"https://twitchemotes.com/\">twitchemotes.com</a> through the <a href=\"https://github.com/Chatterino/api\">Chatterino API</a>")->setOpenExternalLinks(true);
// clang-format on
}

Expand Down

0 comments on commit 54f6e4f

Please sign in to comment.