fixed bug with titles_only

This commit is contained in:
tastytea 2018-04-14 14:35:21 +02:00
parent bc361e38be
commit c187837f8d
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7)
project (mastorss
VERSION 0.5.0
VERSION 0.5.1
LANGUAGES CXX
)

View File

@ -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]: ";

View File

@ -110,7 +110,7 @@ std::vector<string> 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;
}