summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--lib/Db/ItemMapperV2.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 18f9cdac0..21324487b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
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');