diff --git a/CMakeLists.txt b/CMakeLists.txt index c5e639f..3dbb008 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (mastorss - VERSION 0.7.0 + VERSION 0.7.1 LANGUAGES CXX ) diff --git a/src/mastorss.cpp b/src/mastorss.cpp index 841fc13..b1b9ea7 100644 --- a/src/mastorss.cpp +++ b/src/mastorss.cpp @@ -96,15 +96,15 @@ int main(int argc, char *argv[]) continue; } - string answer; + Mastodon::Easy::Status answer; Mastodon::Easy masto(instance, access_token); - masto.send_post(*rit); + answer = masto.send_post(*rit, ret); if (ret != 0) { std::cerr << "Error code: " << ret << '\n'; - std::cerr << answer << '\n'; + std::cerr << answer.to_object().asString() << '\n'; return ret; }