forked from Archives/Athou_commafeed
rename variable because it now contains a duration
This commit is contained in:
@@ -54,9 +54,9 @@ public class FeedRefreshWorker {
|
|||||||
entries = entries.stream().limit(maxFeedCapacity).toList();
|
entries = entries.stream().limit(maxFeedCapacity).toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
Duration maxEntriesAgeDays = config.database().cleanup().entriesMaxAge();
|
Duration entriesMaxAge = config.database().cleanup().entriesMaxAge();
|
||||||
if (!maxEntriesAgeDays.isZero()) {
|
if (!entriesMaxAge.isZero()) {
|
||||||
Instant threshold = Instant.now().minus(maxEntriesAgeDays);
|
Instant threshold = Instant.now().minus(entriesMaxAge);
|
||||||
entries = entries.stream().filter(entry -> entry.published().isAfter(threshold)).toList();
|
entries = entries.stream().filter(entry -> entry.published().isAfter(threshold)).toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user