From 4fcf745b3b084d927bd3f4e5805557cd01a0f19c Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Tue, 4 Feb 2025 03:48:18 -0800 Subject: [PATCH] use content --- src/poll.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/poll.rs b/src/poll.rs index bb2a62c..e37529e 100644 --- a/src/poll.rs +++ b/src/poll.rs @@ -22,6 +22,7 @@ struct Entry { published: Option>, updated: Option>, summary: String, + content: Option, link: Option, } @@ -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();