зеркало из https://github.com/nextcloud/news.git
Don't always mark feed items as unread if the pubTime of the item is unknown
This commit is contained in:
Родитель
7480a3a20c
Коммит
cce8765c8d
|
@ -138,7 +138,7 @@ class FeedBusinessLayer extends BusinessLayer {
|
|||
// if the pub_date changed because we sort by id on the
|
||||
// client side since this is the only reliable way to do it
|
||||
// to not get weird behaviour
|
||||
if($existing->getPubDate() !== $item->getPubDate()){
|
||||
if($existing->getPubDate() !== (int)$item->getPubDate()){
|
||||
|
||||
// because the item is being replaced we need to keep
|
||||
// status flags but we want the new entry to be unread
|
||||
|
|
Загрузка…
Ссылка в новой задаче