aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-10-04 23:53:44 +0200
committerGravatar GitHub <noreply@github.com> 2025-10-04 23:53:44 +0200
commitaeecba7b30cf04a53fc23f7ed7a8c5ce12cb11a6 (patch)
tree7ba27fe8e0bf427c89fdca19e4ef441db61445f5 /app
parent57e1a375cbd2db9741ff19167813344f8eff5772 (diff)
Do not mark important feeds as read from category (#8067)
Important feeds are not supposed to be marked as read from another view. This was already working for the main view, but this PR fixes the case of a category view. Follow-up of: * https://github.com/FreshRSS/FreshRSS/pull/5782
Diffstat (limited to 'app')
-rw-r--r--app/Models/EntryDAO.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php
index f236cd3f3..d7a9a2cbc 100644
--- a/app/Models/EntryDAO.php
+++ b/app/Models/EntryDAO.php
@@ -571,9 +571,9 @@ SQL;
UPDATE `_entry`
SET is_read = ?
WHERE is_read <> ? AND id <= ?
-AND id_feed IN (SELECT f.id FROM `_feed` f WHERE f.category=? AND f.priority >= ?)
+AND id_feed IN (SELECT f.id FROM `_feed` f WHERE f.category=? AND f.priority >= ? AND f.priority < ?)
SQL;
- $values = [$is_read ? 1 : 0, $is_read ? 1 : 0, $idMax, $id, FreshRSS_Feed::PRIORITY_CATEGORY];
+ $values = [$is_read ? 1 : 0, $is_read ? 1 : 0, $idMax, $id, FreshRSS_Feed::PRIORITY_CATEGORY, FreshRSS_Feed::PRIORITY_IMPORTANT];
[$searchValues, $search] = $this->sqlListEntriesWhere(alias: '', state: $state, filters: $filters);