Skip to content

Commit

Permalink
Article should use updated or published property
Browse files Browse the repository at this point in the history
Fixes veeso#5
  • Loading branch information
grtcdr committed Aug 18, 2022
1 parent 5de1af0 commit 3069804
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/feed/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ impl From<RssEntry> for Article {
.get(0)
.map(|x| x.href.clone())
.unwrap_or(entry.id),
date: entry.published.map(DateTime::<Local>::from),
date: entry
.published
.or(entry.updated)
.map(DateTime::<Local>::from),
}
}
}
Expand Down

0 comments on commit 3069804

Please sign in to comment.