Changed ids from uint_fast64_t to const string in examples.
All checks were successful
the build was successful
All checks were successful
the build was successful
This commit is contained in:
parent
b601369bfd
commit
a6b4a09dc8
@ -45,7 +45,7 @@ int main(int argc, char *argv[])
|
||||
// Get last status
|
||||
ret = masto.get(API::v1::accounts_id_statuses,
|
||||
{
|
||||
{ "id", { std::to_string(acc.id()) } },
|
||||
{ "id", { acc.id() } },
|
||||
{ "limit", { "1" } }
|
||||
},
|
||||
answer);
|
||||
|
@ -86,9 +86,9 @@ std::uint16_t print_status(Easy &masto, const std::string &id,
|
||||
// Only print descendant if it is a direct reply
|
||||
// NOTE: This is a wasteful approach, I use it only in the
|
||||
// interest of more clarity. Don't do this at home. :-)
|
||||
if (s.in_reply_to_id() == std::stoull(id))
|
||||
if (s.in_reply_to_id() == id)
|
||||
{
|
||||
print_status(masto, std::to_string(s.id()), level + 4);
|
||||
print_status(masto, s.id(), level + 4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user