From 5ca0b893b987c2b251666adc09f1d188fc3b0017 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 26 Apr 2024 13:29:37 +0200 Subject: Fix updated entry filters (#6334) fix https://github.com/FreshRSS/FreshRSS/issues/6331 --- app/Controllers/feedController.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/Controllers/feedController.php') diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php index 5e364ffcd..3b3bd6ed0 100644 --- a/app/Controllers/feedController.php +++ b/app/Controllers/feedController.php @@ -573,6 +573,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController { $existingHash = $existingHashForGuids[$entry->guid()]; if (strcasecmp($existingHash, $entry->hash()) !== 0) { //This entry already exists but has been updated + $entry->_isUpdated(true); //Minz_Log::debug('Entry with GUID `' . $entry->guid() . '` updated in feed ' . $feed->url(false) . //', old hash ' . $existingHash . ', new hash ' . $entry->hash()); $entry->_isFavorite(null); // Do not change favourite state @@ -587,6 +588,11 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController { continue; } + $entry->applyFilterActions($titlesAsRead); + if ($readWhenSameTitleInFeed > 0) { + $titlesAsRead[$entry->title()] = true; + } + if (!$entry->isRead()) { $needFeedCacheRefresh = true; //Maybe $nbMarkedUnread++; @@ -601,6 +607,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController { $entryDAO->updateEntry($entry->toArray()); } } else { + $entry->_isUpdated(false); $id = uTimeString(); $entry->_id($id); -- cgit v1.2.3