A free, self-hostable news aggregator…
Do not mark important feeds as read from category (#8067)
Alexandre Alapetiteaeecba7b30cf
diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.phpindex 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);