mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 11:01:12 +00:00
sort feed by most recent
This commit is contained in:
parent
98f5cd9393
commit
c21d580fd8
1 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@ class RssFeed(Feed):
|
|||
"""the user's activity feed"""
|
||||
return obj.status_set.select_subclasses().filter(
|
||||
privacy__in=["public", "unlisted"],
|
||||
)[:10]
|
||||
).order_by("-published_date")[:10]
|
||||
|
||||
def item_link(self, item):
|
||||
"""link to the status"""
|
||||
|
@ -80,7 +80,7 @@ class RssReviewsOnlyFeed(Feed):
|
|||
return Review.objects.filter(
|
||||
user=obj,
|
||||
privacy__in=["public", "unlisted"],
|
||||
)[:10]
|
||||
).order_by("-published_date")[:10]
|
||||
|
||||
def item_link(self, item):
|
||||
"""link to the status"""
|
||||
|
@ -122,7 +122,7 @@ class RssQuotesOnlyFeed(Feed):
|
|||
return Quotation.objects.filter(
|
||||
user=obj,
|
||||
privacy__in=["public", "unlisted"],
|
||||
)[:10]
|
||||
).order_by("-published_date")[:10]
|
||||
|
||||
def item_link(self, item):
|
||||
"""link to the status"""
|
||||
|
@ -164,7 +164,7 @@ class RssCommentsOnlyFeed(Feed):
|
|||
return Comment.objects.filter(
|
||||
user=obj,
|
||||
privacy__in=["public", "unlisted"],
|
||||
)[:10]
|
||||
).order_by("-published_date")[:10]
|
||||
|
||||
def item_link(self, item):
|
||||
"""link to the status"""
|
||||
|
|
Loading…
Reference in a new issue