Sort RSS Feed by Shelved date

This will make sure that users see books as they are shelved, which is what would be expected.

Co-authored-by: Adeodato Simó <73768+dato@users.noreply.github.com>
This commit is contained in:
Matt Katz 2024-03-12 21:43:08 -04:00 committed by GitHub
parent 7a25869e3f
commit 7b388ae972
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -217,7 +217,7 @@ class RssShelfFeed(Feed):
def items(self, obj):
"""the user's activity feed"""
return obj.books.order_by("-published_date")[:10]
return obj.books.order_by("-shelfbook__shelved_date")[:10]
def item_link(self, item):
"""link to the status"""