summaryrefslogtreecommitdiff
path: root/app/Controllers/feedController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-04-26 13:29:37 +0200
committerGravatar GitHub <noreply@github.com> 2024-04-26 13:29:37 +0200
commit5ca0b893b987c2b251666adc09f1d188fc3b0017 (patch)
treebc103d5588784792d125947c8ad15843c6bd5ddc /app/Controllers/feedController.php
parentd656896a95fc715c2a4aba961c019339d2b84585 (diff)
Fix updated entry filters (#6334)
fix https://github.com/FreshRSS/FreshRSS/issues/6331
Diffstat (limited to 'app/Controllers/feedController.php')
-rw-r--r--app/Controllers/feedController.php7
1 files changed, 7 insertions, 0 deletions
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);