Skip to content

Commit

Permalink
feat(term): fallback latest entries published date
Browse files Browse the repository at this point in the history
  • Loading branch information
ymgyt committed Mar 17, 2024
1 parent 74e9415 commit 98b57a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/synd_term/src/ui/components/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ impl Subscription {
let updated = feed_meta
.updated
.as_ref()
.or(feed_meta
.entries
.first()
.and_then(|entry| entry.published.as_ref().or(entry.updated.as_ref())))
.map_or_else(|| ui::UNKNOWN_SYMBOL.to_string(), TimeExt::local_ymd);
let desc = feed_meta.description.as_deref().unwrap_or("");
let website_url = feed_meta
Expand Down

0 comments on commit 98b57a1

Please sign in to comment.