diff --git a/CMakeLists.txt b/CMakeLists.txt index 6eb0178..68a3c1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (expandurl-mastodon - VERSION 0.9.10 + VERSION 0.9.11 LANGUAGES CXX ) diff --git a/README.md b/README.md index 68a8969..933c1f5 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ or to [@tastytea@soc.ialis.me](https://soc.ialis.me/@tastytea). * C++ compiler (tested: gcc 6.3 / 7.3) * [cmake](https://cmake.org/) (tested: 3.9 / 3.11) * [curlpp](http://www.curlpp.org/) (tested: 0.8 / 0.7) - * [mastodon-cpp](https://schlomp.space/tastytea/mastodon-cpp) (at least: 0.17) + * [mastodon-cpp](https://schlomp.space/tastytea/mastodon-cpp) (at least: 0.18) * [jsoncpp](https://github.com/open-source-parsers/jsoncpp) (tested: 1.8 / 1.7) * [libxdg-basedir](http://repo.or.cz/w/libxdg-basedir.git) (tested: 1.2) diff --git a/src/masto.cpp b/src/masto.cpp index 7291d29..0e86023 100644 --- a/src/masto.cpp +++ b/src/masto.cpp @@ -271,7 +271,7 @@ const std::uint_fast64_t Listener::get_parent_id(const Easy::Notification ¬if // Fetch full status ret = _masto->get(API::v1::search, {{ "q", { notif.status().url() }}}, answer); - if (ret > 0 || !Easy::Status(answer).valid()) + if (ret > 0) { syslog(LOG_ERR, "Error %u: Could not fetch status (in %s).", ret, __FUNCTION__);