diff options
| author | 2014-11-16 18:10:55 +0100 | |
|---|---|---|
| committer | 2014-11-16 18:10:55 +0100 | |
| commit | 2c50ed7dc1c11571e3af0ee163e414cc321be2ca (patch) | |
| tree | 93005d06594a95a28f5fcf1a2c55cf2d7bd974d2 /app/Models/Configuration.php | |
| parent | 4b374ce991b28d179afaf3e4a02a90cb82affa08 (diff) | |
| parent | 960f86ba20fdf7320c957141a9983d17c7e521fa (diff) | |
Merge pull request #694 from FreshRSS/hide-article
Add a feature to hide articles when they are read
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 53f136513..8668470b0 100644 --- a/app/Models/Configuration.php +++ b/app/Models/Configuration.php @@ -24,6 +24,7 @@ class FreshRSS_Configuration { 'lazyload' => true, 'sticky_post' => true, 'reading_confirm' => false, + 'auto_remove_article' => false, 'sort_order' => 'DESC', 'anon_access' => false, 'mark_when' => array( @@ -191,6 +192,9 @@ class FreshRSS_Configuration { public function _reading_confirm($value) { $this->data['reading_confirm'] = ((bool)$value) && $value !== 'no'; } + public function _auto_remove_article($value) { + $this->data['auto_remove_article'] = ((bool)$value) && $value !== 'no'; + } public function _sort_order($value) { $this->data['sort_order'] = $value === 'ASC' ? 'ASC' : 'DESC'; } |
