Merge pull request #134 from xcffl/feed-item-date-fallback

Feed item date fallback
This commit is contained in:
Haoyuan Liu 2020-12-26 17:35:13 +08:00 committed by GitHub
commit d5c0f48a39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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