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 +