Migrate to the new Get Channel Followers Helix endpoint, fixing follower count not showing up in usercards (#4809)

This commit is contained in:
pajlada
2023-09-09 14:51:45 +02:00
committed by GitHub
parent 515c40f857
commit 813d96867b
5 changed files with 60 additions and 98 deletions
+4 -3
View File
@@ -817,7 +817,7 @@ void UserInfoPopup::updateUserData()
this->loadAvatar(user.profileImageUrl);
}
getHelix()->getUserFollowers(
getHelix()->getChannelFollowers(
user.id,
[this, hack](const auto &followers) {
if (!hack.lock())
@@ -827,8 +827,9 @@ void UserInfoPopup::updateUserData()
this->ui_.followerCountLabel->setText(
TEXT_FOLLOWERS.arg(localizeNumbers(followers.total)));
},
[] {
// on failure
[](const auto &errorMessage) {
qCWarning(chatterinoTwitch)
<< "Error getting followers:" << errorMessage;
});
// get ignore state