Changed behaviour when last entry is not in current feed: Skip entries to prevent spamming
This commit is contained in:
parent
8b0ceaf180
commit
dd47092bbb
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required (VERSION 3.7)
|
||||
project (mastorss
|
||||
VERSION 0.3.6
|
||||
VERSION 0.3.7
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
// Could lead to spamming if an item gets deleted or changed.
|
||||
if (!new_content)
|
||||
{
|
||||
config.put(profile + ".last_entry", entries.at(entries.size() - 1));
|
||||
}
|
||||
// Update: It DID couse spamming :-(
|
||||
// TODO: Think of something better
|
||||
// if (!new_content)
|
||||
// {
|
||||
// config.put(profile + ".last_entry", entries.at(entries.size() - 1));
|
||||
// }
|
||||
pt::write_json(filepath + "config-" + profile + ".json", config);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user