aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-03-02 20:39:18 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-03-02 20:39:18 +0100
commit2b2d9583cd2a4dc39c6f95dd73866c009f4480ce (patch)
tree74469c0b82204763baad930f401ce5d7303a6a72 /app/Controllers
parentb869c2944a01c5060d05a093d5e0c797d48bb159 (diff)
Fix mark_updated_article_unread
https://github.com/FreshRSS/FreshRSS/issues/2200
Diffstat (limited to 'app/Controllers')
-rwxr-xr-xapp/Controllers/feedController.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php
index 74c9eacfa..42cb46834 100755
--- a/app/Controllers/feedController.php
+++ b/app/Controllers/feedController.php
@@ -353,11 +353,10 @@ 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->url(false) .
//', old hash ' . $existingHash . ', new hash ' . $entry->hash());
- $mark_updated_article_unread = $feed->attributes('mark_updated_article_unread') !== null ? (
- $feed->attributes('mark_updated_article_unread')
- ) : FreshRSS_Context::$user_conf->mark_updated_article_unread;
+ $mark_updated_article_unread = $feed->attributes('mark_updated_article_unread') !== null ?
+ $feed->attributes('mark_updated_article_unread') : FreshRSS_Context::$user_conf->mark_updated_article_unread;
$needFeedCacheRefresh = $mark_updated_article_unread;
- $entry->_isRead(FreshRSS_Context::$user_conf->mark_updated_article_unread ? false : null); //Change is_read according to policy.
+ $entry->_isRead($mark_updated_article_unread ? false : null); //Change is_read according to policy.
$entry = Minz_ExtensionManager::callHook('entry_before_insert', $entry);
if ($entry === null) {