use the logical date of the entry and not the date the entry was inserted in the database when marking entries older than a threshold (#1007)

This commit is contained in:
Athou
2022-07-25 17:29:21 +02:00
parent 6ffdc7b07d
commit 152f0bd727

View File

@@ -83,8 +83,8 @@ public class FeedEntryService {
List<FeedEntryStatus> list = new ArrayList<>();
for (FeedEntryStatus status : statuses) {
if (!status.isRead()) {
Date inserted = status.getEntry().getInserted();
if (olderThan == null || inserted == null || olderThan.after(inserted)) {
Date entryDate = status.getEntry().getUpdated();
if (olderThan == null || entryDate == null || olderThan.after(entryDate)) {
status.setRead(true);
list.add(status);
}