mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 12:01:14 +00:00
Hide other people's empty lists from lists page
This commit is contained in:
parent
7af1f6c19d
commit
476d65552e
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ class Lists(View):
|
|||
user = request.user if request.user.is_authenticated else None
|
||||
lists = models.List.objects.filter(
|
||||
~Q(user=user),
|
||||
books__isnull=False,
|
||||
).all()
|
||||
lists = privacy_filter(request.user, lists, ['public', 'followers'])
|
||||
|
||||
|
|
Loading…
Reference in a new issue