aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Context.php
diff options
context:
space:
mode:
authorGravatar berumuron <dev@marienfressinaud.fr> 2023-08-10 17:02:47 +0200
committerGravatar GitHub <noreply@github.com> 2023-08-10 17:02:47 +0200
commit54592fa1fdb80b4865c76b530135aaa0eac438c7 (patch)
tree963ddd8dc7b827a272867e2b54fcceb87ffeb9b2 /app/Models/Context.php
parent1e0e4f54a53ad616d95e343dd07fbc98be06c5ea (diff)
fix: Fix the "Show all articles" option (#5580)
Diffstat (limited to 'app/Models/Context.php')
-rw-r--r--app/Models/Context.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Models/Context.php b/app/Models/Context.php
index 2dc49e844..086d860dd 100644
--- a/app/Models/Context.php
+++ b/app/Models/Context.php
@@ -208,7 +208,9 @@ final class FreshRSS_Context {
self::$state = Minz_Request::paramInt('state') ?: self::$user_conf->default_state;
$state_forced_by_user = Minz_Request::paramString('state') !== '';
if (!$state_forced_by_user && !self::isStateEnabled(FreshRSS_Entry::STATE_READ)) {
- if (self::$user_conf->default_view === 'adaptive' && self::$get_unread <= 0) {
+ if (self::$user_conf->default_view === 'all') {
+ self::$state |= FreshRSS_Entry::STATE_ALL;
+ } elseif (self::$user_conf->default_view === 'adaptive' && self::$get_unread <= 0) {
self::$state |= FreshRSS_Entry::STATE_READ;
}
if (self::$user_conf->show_fav_unread &&