mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
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:
@@ -83,8 +83,8 @@ public class FeedEntryService {
|
|||||||
List<FeedEntryStatus> list = new ArrayList<>();
|
List<FeedEntryStatus> list = new ArrayList<>();
|
||||||
for (FeedEntryStatus status : statuses) {
|
for (FeedEntryStatus status : statuses) {
|
||||||
if (!status.isRead()) {
|
if (!status.isRead()) {
|
||||||
Date inserted = status.getEntry().getInserted();
|
Date entryDate = status.getEntry().getUpdated();
|
||||||
if (olderThan == null || inserted == null || olderThan.after(inserted)) {
|
if (olderThan == null || entryDate == null || olderThan.after(entryDate)) {
|
||||||
status.setRead(true);
|
status.setRead(true);
|
||||||
list.add(status);
|
list.add(status);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user