mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 11:31:08 +00:00
Show lists to logged out viewers
The activitystreams for lists require a logged in user, so this just uses a simple database query of all public lists when there is no logged in user.
This commit is contained in:
parent
5e887085b5
commit
0217d36f7b
1 changed files with 4 additions and 1 deletions
|
@ -17,7 +17,10 @@ class Lists(View):
|
|||
|
||||
def get(self, request):
|
||||
"""display a book list"""
|
||||
if request.user.is_authenticated:
|
||||
lists = ListsStream().get_list_stream(request.user)
|
||||
else:
|
||||
lists = models.List.objects.filter(privacy="public")
|
||||
paginated = Paginator(lists, 12)
|
||||
data = {
|
||||
"lists": paginated.get_page(request.GET.get("page")),
|
||||
|
|
Loading…
Reference in a new issue