aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Context.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-12-27 16:26:02 +0100
committerGravatar GitHub <noreply@github.com> 2025-12-27 16:26:02 +0100
commit7c0370b4eacdd62c06c7324a39f092361e84a2bc (patch)
treeb7b96bde135dab5189728e668e8b6b03f2079ef4 /app/Models/Context.php
parent40533684bb255264fec76296aed3ea4d35cd5317 (diff)
Do not include hidden feeds when counting unread articles in categories (#8357)
fix https://github.com/FreshRSS/FreshRSS/issues/8347
Diffstat (limited to 'app/Models/Context.php')
-rw-r--r--app/Models/Context.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Context.php b/app/Models/Context.php
index a8feb7dbd..c9d743e76 100644
--- a/app/Models/Context.php
+++ b/app/Models/Context.php
@@ -570,7 +570,7 @@ final class FreshRSS_Context {
continue;
}
- if ($cat->nbNotRead() > 0) {
+ if ($cat->nbNotRead(minPriority: FreshRSS_Feed::PRIORITY_CATEGORY) > 0) {
$another_unread_id = $cat->id();
if ($found_current_get) {
// Unread articles and the current category has