1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2025-04-25 20:15:47 +02:00

fix refetching of purged articles

Signed-off-by: anoy <anoymouserver+github@mailbox.org>
This commit is contained in:
anoy 2021-02-10 13:31:26 +01:00 committed by Benjamin Brahmer
parent 884080d451
commit 7e9fd48f4a
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,7 @@ The format is almost based on [Keep a Changelog](https://keepachangelog.com/en/1
### Changed
### Fixed
- Refetching of already read articles after purging (#1142)
## [15.3.1] - 2021-02-06

View File

@ -167,7 +167,8 @@ class ItemMapperV2 extends NewsMapperV2
->from($this->tableName)
->where('feed_id = :feedId')
->andWhere('starred = false')
->orderBy('last_modified', 'DESC');
->orderBy('last_modified', 'DESC')
->addOrderBy('id', 'DESC');
if ($removeUnread === false) {
$rangeQuery->andWhere('unread = false');