diff options
| author | 2015-05-10 12:14:38 +0200 | |
|---|---|---|
| committer | 2015-05-10 12:14:38 +0200 | |
| commit | 5f545dfda2b6700579b856c815e1914a2dd62553 (patch) | |
| tree | 9d796b0115d9b34251c2587dbce97dec35e5ba69 /app/Controllers/feedController.php | |
| parent | 7d1ebd3c23d8189adb522ccaf63a6f525bbe6ff2 (diff) | |
Global option to mark updated articles as unread
https://github.com/FreshRSS/FreshRSS/issues/798
Diffstat (limited to 'app/Controllers/feedController.php')
| -rwxr-xr-x | app/Controllers/feedController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php index 5657d4a88..03f438888 100755 --- a/app/Controllers/feedController.php +++ b/app/Controllers/feedController.php @@ -342,7 +342,8 @@ class FreshRSS_feed_Controller extends Minz_ActionController { } else { //This entry already exists but has been updated Minz_Log::debug('Entry with GUID `' . $entry->guid() . '` updated in feed ' . $feed->id() . ', old hash ' . $existingHash . ', new hash ' . $entry->hash()); - $entry->_isRead(null); //Change is_read according to policy. //TODO: Implement option + //TODO: Make an updated/is_read policy by feed, in addition to the global one. + $entry->_isRead(FreshRSS_Context::$system_conf->mark_updated_article_unread ? false : null); //Change is_read according to policy. if (!$entryDAO->hasTransaction()) { $entryDAO->beginTransaction(); } |
