aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-08-27 15:33:45 +0200
committerGravatar GitHub <noreply@github.com> 2024-08-27 15:33:45 +0200
commit7ba880ca1c74beef164065b9da912c54eee09f51 (patch)
treeeecbd82321fb63a2720c09168499f718ecd9b810 /app
parent05e24aa559684a089c2b6521f551b16e6c014f94 (diff)
Fix mark-as-read from user query (#6738)
fix https://github.com/FreshRSS/FreshRSS/issues/6732
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/entryController.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Controllers/entryController.php b/app/Controllers/entryController.php
index e604ca6b2..4f8fa3452 100644
--- a/app/Controllers/entryController.php
+++ b/app/Controllers/entryController.php
@@ -55,7 +55,9 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController {
FreshRSS_Context::$state = Minz_Request::paramInt('state');
if (FreshRSS_Context::isStateEnabled(FreshRSS_Entry::STATE_FAVORITE)) {
- FreshRSS_Context::$state = FreshRSS_Entry::STATE_FAVORITE;
+ if (!FreshRSS_Context::isStateEnabled(FreshRSS_Entry::STATE_NOT_FAVORITE)) {
+ FreshRSS_Context::$state = FreshRSS_Entry::STATE_FAVORITE;
+ }
} elseif (FreshRSS_Context::isStateEnabled(FreshRSS_Entry::STATE_NOT_FAVORITE)) {
FreshRSS_Context::$state = FreshRSS_Entry::STATE_NOT_FAVORITE;
} else {