mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 03:51:08 +00:00
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:
parent
3f8e309680
commit
21e0f4234e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue