Fix *mark as read* articles when adding a new feed

https://github.com/FreshRSS/FreshRSS/issues/1535
This commit is contained in:
Alexandre Alapetite
2017-05-25 13:03:55 +02:00
parent 431683eb3d
commit a4aef7bf83
2 changed files with 2 additions and 0 deletions

View File

@@ -348,6 +348,7 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
} else {
if ($isNewFeed) {
$id = min(time(), $entry_date) . uSecString();
$entry->_isRead($is_read);
} elseif ($entry_date < $date_min) {
$id = min(time(), $entry_date) . uSecString();
$entry->_isRead(true); //Old article that was not in database. Probably an error, so mark as read