Uses empty queryset for forced no results mode

This commit is contained in:
Mouse Reeve
2021-05-01 19:05:46 -07:00
parent f94a3ec63b
commit 97aeaa9cd7
2 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,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 {}
return models.User.objects.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)