1
0
Fork 0

Remove slugs from shelf as their id has text in it already

This commit is contained in:
Vivianne Langdon 2022-03-02 01:37:58 -08:00
parent 846963ad18
commit 2b483488aa
3 changed files with 5 additions and 14 deletions

View file

@ -14,7 +14,7 @@ from django.views import View
from bookwyrm import forms, models
from bookwyrm.activitypub import ActivitypubResponse
from bookwyrm.settings import PAGE_LENGTH
from bookwyrm.views.helpers import is_api_request, get_user_from_username, maybe_redirect_local_path
from bookwyrm.views.helpers import is_api_request, get_user_from_username
# pylint: disable=no-self-use
@ -56,9 +56,6 @@ class Shelf(View):
if is_api_request(request) and shelf_identifier:
return ActivitypubResponse(shelf.to_activity(**request.GET))
if r := maybe_redirect_local_path(request, shelf):
return r
reviews = models.Review.objects
if not is_self:
reviews = models.Review.privacy_filter(request.user)