From aea9ba0d62b86be05e53747c97bfcbc8f4bc4408 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 21 Oct 2024 13:41:16 +0200 Subject: 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 --- app/Controllers/categoryController.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/Controllers/categoryController.php') 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')) { -- cgit v1.2.3