diff options
| author | 2014-08-09 18:46:22 +0200 | |
|---|---|---|
| committer | 2014-08-09 18:46:22 +0200 | |
| commit | 2b25aa8f68dccf7001b965fc6c08c3a794ec6b04 (patch) | |
| tree | 26ccb95906f9beaff6e9a0fb1b066345fea41ee7 /app/Models/Configuration.php | |
| parent | c81be3c20aab4eb1773a0acd99d4aa5a9e30c4d6 (diff) | |
Option to hide (or not) feeds/categories with no unread article
https://github.com/marienfressinaud/FreshRSS/issues/430
https://github.com/marienfressinaud/FreshRSS/issues/575
Diffstat (limited to 'app/Models/Configuration.php')
| -rw-r--r-- | app/Models/Configuration.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Models/Configuration.php b/app/Models/Configuration.php index 7596c54cd..2f47312c0 100644 --- a/app/Models/Configuration.php +++ b/app/Models/Configuration.php @@ -17,6 +17,7 @@ class FreshRSS_Configuration { 'default_view' => FreshRSS_Entry::STATE_NOT_READ, 'auto_load_more' => true, 'display_posts' => false, + 'hide_read_feeds' => true, 'onread_jump_next' => true, 'lazyload' => true, 'sticky_post' => true, @@ -141,6 +142,9 @@ class FreshRSS_Configuration { public function _display_posts ($value) { $this->data['display_posts'] = ((bool)$value) && $value !== 'no'; } + public function _hide_read_feeds($value) { + $this->data['hide_read_feeds'] = (bool)$value; + } public function _onread_jump_next ($value) { $this->data['onread_jump_next'] = ((bool)$value) && $value !== 'no'; } |
