parent
e31cd4e9be
commit
7fe118f303
2
models.h
2
models.h
|
@ -34,7 +34,7 @@ struct Account {
|
||||||
std::string avatar;
|
std::string avatar;
|
||||||
std::string avatar_static;
|
std::string avatar_static;
|
||||||
std::string header;
|
std::string header;
|
||||||
uint64_t followers_count;
|
int64_t followers_count;
|
||||||
uint64_t following_count;
|
uint64_t following_count;
|
||||||
uint64_t statuses_count;
|
uint64_t statuses_count;
|
||||||
std::vector<Emoji> emojis;
|
std::vector<Emoji> emojis;
|
||||||
|
|
|
@ -112,7 +112,8 @@ static inline Element user_header(const httplib::Request& req, const std::string
|
||||||
Element("br"),
|
Element("br"),
|
||||||
Element("b", {std::to_string(account.statuses_count)}), " Posts", " / ",
|
Element("b", {std::to_string(account.statuses_count)}), " Posts", " / ",
|
||||||
Element("b", {std::to_string(account.following_count)}), " Following", " / ",
|
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",
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue