summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-02-06 22:56:14 +0300
committerAndrew Dolgov <[email protected]>2019-02-06 22:56:14 +0300
commit13e7e775a383e2d6cf12ca1aa60099c0289560fb (patch)
tree244fbaf6d06fdcef163ef1aa33924487847d4b5f /classes
parentdd9bad06ee32e4b3990c031d4b8aa14418cd3a61 (diff)
update_rss_feed: mark_unread_on_update should take into account catchup filter action and entry_force_catchup
Diffstat (limited to 'classes')
-rwxr-xr-xclasses/rssutils.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/classes/rssutils.php b/classes/rssutils.php
index a1ba95d66..6048c8310 100755
--- a/classes/rssutils.php
+++ b/classes/rssutils.php
@@ -1017,12 +1017,17 @@ class RSSUtils {
SET score = ? WHERE ref_id = ?");
$sth->execute([$score, $ref_id]);
- if ($mark_unread_on_update) {
+ if ($mark_unread_on_update &&
+ !$entry_force_catchup &&
+ !RSSUtils::find_article_filter($article_filters, 'catchup')) {
+
Debug::log("article updated, marking unread as requested.", Debug::$LOG_VERBOSE);
$sth = $pdo->prepare("UPDATE ttrss_user_entries
SET last_read = null, unread = true WHERE ref_id = ?");
$sth->execute([$ref_id]);
+ } else {
+ Debug::log("article updated, but we're forbidden to mark it unread.", Debug::$LOG_VERBOSE);
}
}