diff --git a/CMakeLists.txt b/CMakeLists.txt index a7a786a..b1e9334 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (mastodon-cpp - VERSION 0.7.13 + VERSION 0.7.14 LANGUAGES CXX ) diff --git a/src/easy/account.cpp b/src/easy/account.cpp index 07f71ad..bf9b44a 100644 --- a/src/easy/account.cpp +++ b/src/easy/account.cpp @@ -75,7 +75,7 @@ const string Account::header_static() const const std::uint64_t Account::id() const { - return get_uint64("id"); + return std::stoull(get_string("id")); } const bool Account::locked() const diff --git a/src/easy/attachment.cpp b/src/easy/attachment.cpp index 7ce1c9d..e89a43d 100644 --- a/src/easy/attachment.cpp +++ b/src/easy/attachment.cpp @@ -72,7 +72,7 @@ const uint64_t Attachment::height_small() const const std::uint64_t Attachment::id() const { - return get_uint64("id"); + return std::stoull(get_string("id")); } const string Attachment::preview_url() const diff --git a/src/easy/list.cpp b/src/easy/list.cpp index 338e08b..a148a35 100644 --- a/src/easy/list.cpp +++ b/src/easy/list.cpp @@ -31,7 +31,7 @@ List::List() const uint64_t List::id() const { - return get_uint64("id"); + return std::stoull(get_string("id")); } const string List::title() const diff --git a/src/easy/mention.cpp b/src/easy/mention.cpp index 65bf152..fe8be65 100644 --- a/src/easy/mention.cpp +++ b/src/easy/mention.cpp @@ -34,7 +34,7 @@ const string Mention::acct() const const uint64_t Mention::id() const { - return get_uint64("id"); + return std::stoull(get_string("id")); } const string Mention::url() const diff --git a/src/easy/notification.cpp b/src/easy/notification.cpp index 2bd4e24..856ad87 100644 --- a/src/easy/notification.cpp +++ b/src/easy/notification.cpp @@ -47,7 +47,7 @@ const system_clock::time_point Notification::created_at() const const uint64_t Notification::id() const { - return get_uint64("id"); + return std::stoull(get_string("id")); } const Easy::Status Notification::status() const diff --git a/src/easy/relationship.cpp b/src/easy/relationship.cpp index 77b3a68..a80a5a4 100644 --- a/src/easy/relationship.cpp +++ b/src/easy/relationship.cpp @@ -49,7 +49,7 @@ const bool Relationship::following() const const uint64_t Relationship::id() const { - return get_uint64("id"); + return std::stoull(get_string("id")); } const bool Relationship::muting() const diff --git a/src/easy/report.cpp b/src/easy/report.cpp index 17f1551..84f0e3d 100644 --- a/src/easy/report.cpp +++ b/src/easy/report.cpp @@ -34,6 +34,6 @@ const bool Report::action_taken() const const uint64_t Report::id() const { - return get_uint64("id"); + return std::stoull(get_string("id")); }