bugfix: Treated Easy::Results as Easy::Status, resulting in always-false validity.

master
tastytea 4 years ago
parent 52604d536a
commit f42bff3918
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
  1. 2
      CMakeLists.txt
  2. 2
      README.md
  3. 2
      src/masto.cpp

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7)
project (expandurl-mastodon
VERSION 0.9.10
VERSION 0.9.11
LANGUAGES CXX
)

@ -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)

@ -271,7 +271,7 @@ const std::uint_fast64_t Listener::get_parent_id(const Easy::Notification &notif
// 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__);

Loading…
Cancel
Save