mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-24 00:50:35 +00:00
Fixes logged out state for user search
This commit is contained in:
parent
d5c36dbc28
commit
0ed0f45b32
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ def user_search(query, viewer, *_):
|
|||
"""cool kids members only user search"""
|
||||
# logged out viewers can't search users
|
||||
if not viewer.is_authenticated:
|
||||
return models.User.objects.none()
|
||||
return models.User.objects.none(), None
|
||||
|
||||
# use webfinger for mastodon style account@domain.com username to load the user if
|
||||
# they don't exist locally (handle_remote_webfinger will check the db)
|
||||
|
|
Loading…
Reference in a new issue