Browse Source

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

tags/0.9.11
tastytea 1 year ago
parent
commit
f42bff3918
Signed by: tastytea <tastytea@tastytea.de> GPG Key ID: CFC39497F1B26E07
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      CMakeLists.txt
  2. +1
    -1
      README.md
  3. +1
    -1
      src/masto.cpp

+ 1
- 1
CMakeLists.txt View File

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


+ 1
- 1
README.md View File

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


+ 1
- 1
src/masto.cpp View File

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