More chance for item to fallback to publish time

This commit is contained in:
xcffl 2020-12-11 19:02:08 +08:00
parent 71aabe67d8
commit f566e7f695

View File

@ -34,7 +34,7 @@ export class RSSItem {
this.title = item.title || intl.get("article.untitled")
this.link = item.link || ""
this.fetchedDate = new Date()
this.date = item.isoDate ? new Date(item.isoDate) : this.fetchedDate
this.date = new Date(item.isoDate ?? item.pubDate ?? this.fetchedDate)
this.creator = item.creator
this.hasRead = false
this.starred = false