Skip to content

Commit

Permalink
Merge pull request #77 from capivarasdev/upstream-feed
Browse files Browse the repository at this point in the history
add proper_url to rss feed
  • Loading branch information
sirodoht authored Jul 20, 2024
2 parents 1b7ca83 + c4a3393 commit fbb6ef6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main/feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def __call__(self, request, *args, **kwargs):
self.title = user.blog_title
self.description = user.blog_byline_as_text
self.subdomain = request.subdomain
self.link = user.blog_url

models.AnalyticPage.objects.create(user=user, path="rss")

Expand All @@ -35,6 +36,9 @@ def items(self):
def item_title(self, item):
return item.title

def item_link(self, item):
return item.get_proper_url()

def item_description(self, item):
return item.body_as_html

Expand Down

0 comments on commit fbb6ef6

Please sign in to comment.