mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fetch items published within 24 hours
This commit is contained in:
parent
03ce4b00d2
commit
c7edfdb27d
1 changed files with 2 additions and 2 deletions
|
|
@ -139,10 +139,10 @@ export const rssHandler = Sentry.GCPFunction.wrapHttpFunction(
|
|||
continue
|
||||
}
|
||||
|
||||
// skip old items and items that were published before 48h
|
||||
// skip old items and items that were published before 24h
|
||||
const publishedAt = new Date(item.isoDate)
|
||||
if (
|
||||
publishedAt < new Date(Date.now() - 48 * 60 * 60 * 1000) ||
|
||||
publishedAt < new Date(Date.now() - 24 * 60 * 60 * 1000) ||
|
||||
publishedAt < new Date(lastFetchedAt)
|
||||
) {
|
||||
console.log('Skipping old feed item', item.link)
|
||||
|
|
|
|||
Loading…
Reference in a new issue