rss dates

This commit is contained in:
Kelson Vibber 2023-05-28 21:55:26 -07:00
parent ee1dd612fb
commit 637e0376d4

View file

@ -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