summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoranoy <anoymouserver+github@mailbox.org>2021-02-10 13:31:26 +0100
committerBenjamin Brahmer <info@b-brahmer.de>2021-02-10 13:58:13 +0100
commit7e9fd48f4a307b4beb11d9a24450b705e41c3de3 (patch)
treee47dc64319c2f25ecc1ab428fb66de545e06184b /lib
parent884080d451c0348cd92961671d71f753530ce9a2 (diff)
fix refetching of purged articles
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/Db/ItemMapperV2.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Db/ItemMapperV2.php b/lib/Db/ItemMapperV2.php
index ed7efff3f..f51b7af4d 100644
--- a/lib/Db/ItemMapperV2.php
+++ b/lib/Db/ItemMapperV2.php
@@ -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');