Fix displaying hidden followers count

https://chaosfem.tw/@Terra
This commit is contained in:
blankie 2023-11-24 11:07:35 +11:00
parent e31cd4e9be
commit 7fe118f303
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
2 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,7 @@ struct Account {
std::string avatar;
std::string avatar_static;
std::string header;
uint64_t followers_count;
int64_t followers_count;
uint64_t following_count;
uint64_t statuses_count;
std::vector<Emoji> emojis;

View File

@ -112,7 +112,8 @@ static inline Element user_header(const httplib::Request& req, const std::string
Element("br"),
Element("b", {std::to_string(account.statuses_count)}), " Posts", " / ",
Element("b", {std::to_string(account.following_count)}), " Following", " / ",
Element("b", {std::to_string(account.followers_count)}), " Followers",
// https://chaosfem.tw/@Terra
Element("b", {account.followers_count >= 0 ? std::to_string(account.followers_count) : "???"}), " Followers",
}),
}),