Skip to content

Commit

Permalink
More chance for item to fallback to publish time
Browse files Browse the repository at this point in the history
  • Loading branch information
cognition9144 committed Dec 11, 2020
1 parent 3ca938f commit 07aaa07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/models/item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07aaa07

Please sign in to comment.