Merge pull request #134 from xcffl/feed-item-date-fallback
Feed item date fallback
This commit is contained in:
commit
d5c0f48a39
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue