aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/categoryController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-10-21 13:41:16 +0200
committerGravatar GitHub <noreply@github.com> 2024-10-21 13:41:16 +0200
commitaea9ba0d62b86be05e53747c97bfcbc8f4bc4408 (patch)
tree5be022f67f0cd2fab8f7d09113e09608cdddc5aa /app/Controllers/categoryController.php
parentad2c6e6fbf3658f08295fb437a0f97e10498eb11 (diff)
New option mark article as read if identical title in category (#6922)
* New mark articles as read if identical title in category fix https://github.com/FreshRSS/FreshRSS/issues/6143 * i18n todo forgotten
Diffstat (limited to 'app/Controllers/categoryController.php')
-rw-r--r--app/Controllers/categoryController.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Controllers/categoryController.php b/app/Controllers/categoryController.php
index 4d5c77596..181c4d811 100644
--- a/app/Controllers/categoryController.php
+++ b/app/Controllers/categoryController.php
@@ -100,6 +100,12 @@ class FreshRSS_category_Controller extends FreshRSS_ActionController {
FreshRSS_View::prependTitle($category->name() . ' · ' . _t('sub.title') . ' · ');
if (Minz_Request::isPost()) {
+ if (Minz_Request::paramBoolean('enable_read_when_same_title_in_category')) {
+ $category->_attribute('read_when_same_title_in_category', Minz_Request::paramInt('read_when_same_title_in_category'));
+ } else {
+ $category->_attribute('read_when_same_title_in_category', null);
+ }
+
$category->_filtersAction('read', Minz_Request::paramTextToArray('filteractions_read'));
if (Minz_Request::paramBoolean('use_default_purge_options')) {