aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-05-10 12:16:49 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-05-10 12:16:49 +0200
commitb0cfbe3ff636ba7925876f633b206614d413f879 (patch)
tree9d796b0115d9b34251c2587dbce97dec35e5ba69
parent1f1e68bde1b0d62ac3f3cc1d5f7d87e1ed0b5855 (diff)
parent5f545dfda2b6700579b856c815e1914a2dd62553 (diff)
Merge remote-tracking branch 'origin/sql_hash_lastUpdate' into dev
-rwxr-xr-xapp/Controllers/feedController.php3
-rw-r--r--data/config.default.php4
2 files changed, 6 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();
}
diff --git a/data/config.default.php b/data/config.default.php
index 8be203d36..dc947f154 100644
--- a/data/config.default.php
+++ b/data/config.default.php
@@ -55,6 +55,10 @@ return array(
# SimplePie, which is retrieving RSS feeds via HTTP requests.
'simplepie_syslog_enabled' => true,
+ # In the case an article has changed (e.g. updated content):
+ # Set to `true` to mark it unread, or `false` to leave it as-is.
+ 'mark_updated_article_unread' => false,
+
'limits' => array(
# Duration in seconds of the SimplePie cache,