From dd47092bbbfefe3f35fa3cc53b6afbd404028f77 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 12 Mar 2018 07:57:20 +0100 Subject: [PATCH] Changed behaviour when last entry is not in current feed: Skip entries to prevent spamming --- CMakeLists.txt | 2 +- src/mastorss.cpp | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a3c9a1f..28e2832 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (mastorss - VERSION 0.3.6 + VERSION 0.3.7 LANGUAGES CXX ) diff --git a/src/mastorss.cpp b/src/mastorss.cpp index ee43cfc..ef39eab 100644 --- a/src/mastorss.cpp +++ b/src/mastorss.cpp @@ -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;