mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-04 05:03:38 -04:00
Rework keepmax (#5905)
* Rework keepmax fix https://github.com/FreshRSS/FreshRSS/issues/5702 fix https://github.com/FreshRSS/FreshRSS/issues/5870 * More WIP * Minor progress * Progress * Beta * Improved debug message * Revert noCommit * Fix variable reset * Remove debug syslogs
This commit is contained in:
committed by
GitHub
parent
eb2c2d9a01
commit
f0d4f2762d
@@ -124,8 +124,8 @@ class FreshRSS_subscription_Controller extends FreshRSS_ActionController {
|
||||
$feed->_attributes('read_upon_reception', Minz_Request::paramTernary('read_upon_reception'));
|
||||
$feed->_attributes('clear_cache', Minz_Request::paramTernary('clear_cache'));
|
||||
|
||||
$keep_max_n_unread = Minz_Request::paramInt('keep_max_n_unread');
|
||||
$feed->_attributes('keep_max_n_unread', $keep_max_n_unread > 0 ? $keep_max_n_unread : null);
|
||||
$keep_max_n_unread = Minz_Request::paramTernary('keep_max_n_unread') === true ? Minz_Request::paramInt('keep_max_n_unread') : null;
|
||||
$feed->_attributes('keep_max_n_unread', $keep_max_n_unread >= 0 ? $keep_max_n_unread : null);
|
||||
|
||||
$read_when_same_title_in_feed = Minz_Request::paramString('read_when_same_title_in_feed');
|
||||
if ($read_when_same_title_in_feed === '') {
|
||||
|
||||
Reference in New Issue
Block a user