diff --git a/CMakeLists.txt b/CMakeLists.txt index 025c526..cff9bb0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (mastorss - VERSION 0.5.0 + VERSION 0.5.1 LANGUAGES CXX ) diff --git a/src/config.cpp b/src/config.cpp index 3a6b75e..18b1c68 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -113,7 +113,7 @@ std::uint16_t read_config(string &instance, string &access_token, string &feedur config[profile]["feedurl"] = feedurl; config_changed = true; } - if (!config[profile]["titles_only"].asBool()) + if (config[profile]["titles_only"].isNull()) { string titles_only; cout << "post only titles? [y/n]: "; diff --git a/src/parse.cpp b/src/parse.cpp index b184dfa..356b1a6 100644 --- a/src/parse.cpp +++ b/src/parse.cpp @@ -110,7 +110,7 @@ std::vector parse_website(const string &xml) string desc = v.second.get_child("description").data(); string str = title; - if (!config[profile]["titles_only"]) + if (!config[profile]["titles_only"].asBool()) { str += "\n\n" + desc; }