Changed behaviour when last entry is not in current feed: Skip entries to prevent spamming

This commit is contained in:
tastytea 2018-03-12 07:57:20 +01:00
parent 8b0ceaf180
commit dd47092bbb
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
2 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7) cmake_minimum_required (VERSION 3.7)
project (mastorss project (mastorss
VERSION 0.3.6 VERSION 0.3.7
LANGUAGES CXX LANGUAGES CXX
) )

View File

@ -115,10 +115,12 @@ int main(int argc, char *argv[])
// If the last entry is not in the current feed, set the oldest item as last entry // If the last entry is not in the current feed, set the oldest item as last entry
// Could lead to spamming if an item gets deleted or changed. // Could lead to spamming if an item gets deleted or changed.
if (!new_content) // Update: It DID couse spamming :-(
{ // TODO: Think of something better
config.put(profile + ".last_entry", entries.at(entries.size() - 1)); // if (!new_content)
} // {
// config.put(profile + ".last_entry", entries.at(entries.size() - 1));
// }
pt::write_json(filepath + "config-" + profile + ".json", config); pt::write_json(filepath + "config-" + profile + ".json", config);
return 0; return 0;