From 637e0376d46fe5302b98b9dc41c1f78fcd8b89a5 Mon Sep 17 00:00:00 2001 From: Kelson Vibber Date: Sun, 28 May 2023 21:55:26 -0700 Subject: [PATCH] rss dates --- bookwyrm/views/rss_feed.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/bookwyrm/views/rss_feed.py b/bookwyrm/views/rss_feed.py index 82a7b3dce..e1835820e 100644 --- a/bookwyrm/views/rss_feed.py +++ b/bookwyrm/views/rss_feed.py @@ -44,6 +44,10 @@ class RssFeed(Feed): """link to the status""" return item.local_path + def item_pubdate(self, item): + """publication date of the item""" + return item.published_date + class RssReviewsOnlyFeed(Feed): """serialize user's reviews in rss feed""" @@ -82,6 +86,10 @@ class RssReviewsOnlyFeed(Feed): """link to the status""" return item.local_path + def item_pubdate(self, item): + """publication date of the item""" + return item.published_date + class RssQuotesOnlyFeed(Feed): """serialize user's quotes in rss feed""" @@ -120,6 +128,10 @@ class RssQuotesOnlyFeed(Feed): """link to the status""" return item.local_path + def item_pubdate(self, item): + """publication date of the item""" + return item.published_date + class RssCommentsOnlyFeed(Feed): """serialize user's quotes in rss feed""" @@ -157,3 +169,8 @@ class RssCommentsOnlyFeed(Feed): def item_link(self, item): """link to the status""" return item.local_path + + def item_pubdate(self, item): + """publication date of the item""" + return item.published_date +