chore: consolidate twitch URLs with www (#6407)

This commit is contained in:
cqttv
2025-08-23 06:46:34 -04:00
committed by GitHub
parent 195776d4b7
commit 41ba487ca1
6 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -392,7 +392,7 @@ EmotePtr makeSharedChatBadge(const QString &sourceName,
return Url{"https://link.twitch.tv/SharedChatViewer"};
}
return Url{u"https://twitch.tv/%1"_s.arg(sourceLogin)};
return Url{u"https://www.twitch.tv/%1"_s.arg(sourceLogin)};
}();
return std::make_shared<Emote>(Emote{
+1 -1
View File
@@ -116,7 +116,7 @@ TwitchChannel::TwitchChannel(const QString &name)
, ChannelChatters(*static_cast<Channel *>(this))
, nameOptions{name, name, name}
, subscriptionUrl_("https://www.twitch.tv/subs/" + name)
, channelUrl_("https://twitch.tv/" + name)
, channelUrl_("https://www.twitch.tv/" + name)
, popoutPlayerUrl_(TWITCH_PLAYER_URL.arg(name))
, localTwitchEmotes_(std::make_shared<EmoteMap>())
, bttvEmotes_(std::make_shared<EmoteMap>())
+1 -1
View File
@@ -22,7 +22,7 @@ void openInCustomPlayer(QStringView channelName)
}
QDesktopServices::openUrl(
QUrl{scheme % u"https://twitch.tv/" % channelName});
QUrl{scheme % u"https://www.twitch.tv/" % channelName});
}
} // namespace chatterino
+3 -2
View File
@@ -283,8 +283,9 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, Split *split)
switch (button)
{
case Qt::LeftButton: {
QDesktopServices::openUrl(QUrl(
"https://twitch.tv/" + this->userName_.toLower()));
QDesktopServices::openUrl(
QUrl("https://www.twitch.tv/" +
this->userName_.toLower()));
}
break;
+4 -4
View File
@@ -1101,7 +1101,7 @@ void Split::openInBrowser()
if (auto *twitchChannel = dynamic_cast<TwitchChannel *>(channel.get()))
{
QDesktopServices::openUrl("https://twitch.tv/" +
QDesktopServices::openUrl("https://www.twitch.tv/" +
twitchChannel->getName());
}
}
@@ -1109,8 +1109,8 @@ void Split::openInBrowser()
void Split::openWhispersInBrowser()
{
auto userName = getApp()->getAccounts()->twitch.getCurrent()->getUserName();
QDesktopServices::openUrl("https://twitch.tv/popout/moderator/" + userName +
"/whispers");
QDesktopServices::openUrl("https://www.twitch.tv/popout/moderator/" +
userName + "/whispers");
}
void Split::openBrowserPlayer()
@@ -1124,7 +1124,7 @@ void Split::openModViewInBrowser()
if (auto *twitchChannel = dynamic_cast<TwitchChannel *>(channel.get()))
{
QDesktopServices::openUrl("https://twitch.tv/moderator/" +
QDesktopServices::openUrl("https://www.twitch.tv/moderator/" +
twitchChannel->getName());
}
}