From 21e0f4234e1047bbed6c19bfc1f6e2a3be2893a0 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 28 Dec 2021 15:04:25 -0800 Subject: [PATCH] Don't try to create a json view of the all books page It's a fake view, a liar --- bookwyrm/views/shelf/shelf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/views/shelf/shelf.py b/bookwyrm/views/shelf/shelf.py index f8cffe93f..34914d971 100644 --- a/bookwyrm/views/shelf/shelf.py +++ b/bookwyrm/views/shelf/shelf.py @@ -52,7 +52,7 @@ class Shelf(View): ) 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)) reviews = models.Review.objects