use content
This commit is contained in:
parent
c4e21af95b
commit
4fcf745b3b
@ -22,6 +22,7 @@ struct Entry {
|
||||
published: Option<DateTime<Utc>>,
|
||||
updated: Option<DateTime<Utc>>,
|
||||
summary: String,
|
||||
content: Option<feed_rs::model::Content>,
|
||||
link: Option<String>,
|
||||
}
|
||||
|
||||
@ -62,9 +63,10 @@ pub async fn poll_feed(
|
||||
.map(|feed_entry| Entry {
|
||||
id: feed_entry.id,
|
||||
title: get(feed_entry.title, "title"),
|
||||
summary: get(feed_entry.summary, "summary"),
|
||||
published: feed_entry.published,
|
||||
updated: feed_entry.updated,
|
||||
summary: get(feed_entry.summary, "summary"),
|
||||
content: feed_entry.content,
|
||||
link: feed_entry.links.first().map(|l| l.href.clone()),
|
||||
})
|
||||
.collect();
|
||||
|
Loading…
Reference in New Issue
Block a user