Migrate to the new Get Channel Followers Helix endpoint, fixing follower count not showing up in usercards (#4809)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user