Skip to content

Commit

Permalink
fix(usecard): check for protocol of 7TV avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Oct 30, 2024
1 parent 75678e4 commit f9a18c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/widgets/dialogs/UserInfoPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,10 @@ void UserInfoPopup::loadSevenTVAvatar(const HelixUser &user)
{
return;
}
url.prepend("https:");
if (!url.startsWith(u"https:"))
{
url.prepend(u"https:");
}

// We're implementing custom caching here,
// because we need the cached file path.
Expand Down

0 comments on commit f9a18c1

Please sign in to comment.