chore: consolidate twitch URLs with www (#6407)
This commit is contained in:
@@ -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{
|
||||
|
||||
@@ -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>())
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user