forked from mirrors/bookwyrm
Don't show books lists when item isn't approved
This commit is contained in:
parent
4eefe33d9b
commit
5ddb3b810e
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ class Book(View):
|
|||
'rating': reviews.aggregate(Avg('rating'))['rating__avg'],
|
||||
'tags': models.UserTag.objects.filter(book=book),
|
||||
'lists': privacy_filter(
|
||||
request.user, book.list_set.all()
|
||||
request.user, book.list_set.filter(listitem__approved=True)
|
||||
),
|
||||
'user_tags': user_tags,
|
||||
'user_shelves': user_shelves,
|
||||
|
|
Loading…
Reference in a new issue