mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-24 09:00:33 +00:00
Merge pull request #2275 from hughrun/spaceless
strip spaces from user search
This commit is contained in:
commit
be1141dddc
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ def user_search(request):
|
|||
"""cool kids members only user search"""
|
||||
viewer = request.user
|
||||
query = request.GET.get("q")
|
||||
query = query.strip()
|
||||
data = {"type": "user", "query": query}
|
||||
# logged out viewers can't search users
|
||||
if not viewer.is_authenticated:
|
||||
|
|
Loading…
Reference in a new issue