fixed Easy::Status::in_reply_to_*id()

This commit is contained in:
tastytea 2018-04-04 03:26:48 +02:00
parent 9f75b7d2b2
commit babab7c1b4
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7)
project (mastodon-cpp
VERSION 0.8.4
VERSION 0.8.5
LANGUAGES CXX
)

View File

@ -97,12 +97,12 @@ const uint_fast64_t Status::id() const
const uint_fast64_t Status::in_reply_to_id() const
{
return get_uint64("in_reply_to_id");
return std::stoull(get_string("in_reply_to_id"));
}
const uint_fast64_t Status::in_reply_to_account_id() const
{
return get_uint64("in_reply_to_account_id");
return std::stoull(get_string("in_reply_to_account_id"));
}
const string Status::language() const