Don't try to create a json view of the all books page

It's a fake view, a liar
This commit is contained in:
Mouse Reeve 2021-12-28 15:04:25 -08:00
parent 3f8e309680
commit 21e0f4234e

View file

@ -52,7 +52,7 @@ class Shelf(View):
) )
shelf = FakeShelf("all", _("All books"), user, books, "public") shelf = FakeShelf("all", _("All books"), user, books, "public")
if is_api_request(request): if is_api_request(request) and shelf_identifier:
return ActivitypubResponse(shelf.to_activity(**request.GET)) return ActivitypubResponse(shelf.to_activity(**request.GET))
reviews = models.Review.objects reviews = models.Review.objects