Просмотр исходного кода

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

https://github.com/FreshRSS/FreshRSS/issues/1535
Alexandre Alapetite 8 лет назад
Родитель
Сommit
a4aef7bf83
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      CHANGELOG.md
  2. 1 0
      app/Controllers/feedController.php

+ 1 - 0
CHANGELOG.md

@@ -20,6 +20,7 @@
 	* Fix UI lowest subscription popup hidden [#1479](https://github.com/FreshRSS/FreshRSS/issues/1479)
 	* Fix update system via ZIP archive [#1498](https://github.com/FreshRSS/FreshRSS/pull/1498)
 	* Work around for IE / Edge bug in username pattern in version 1.6.3 [#1511](https://github.com/FreshRSS/FreshRSS/issues/1511)
+	* Fix *mark as read* articles when adding a new feed [#1535](https://github.com/FreshRSS/FreshRSS/issues/1535)
 * UI
 	* Download icon 💾 for other MIME types (e.g. `application/*`) [#1522](https://github.com/FreshRSS/FreshRSS/pull/1522)
 * I18n

+ 1 - 0
app/Controllers/feedController.php

@@ -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