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)
|
cmake_minimum_required (VERSION 3.7)
|
||||||
project (mastorss
|
project (mastorss
|
||||||
VERSION 0.3.6
|
VERSION 0.3.7
|
||||||
LANGUAGES CXX
|
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
|
// 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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user