mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-26 07:10:28 +00:00
Make user handle search to be case insensitive (#474)
This commit is contained in:
parent
425c77e085
commit
5dd2ebee29
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class SearchService:
|
|||
else:
|
||||
for identity in Identity.objects.filter(username=handle)[:20]:
|
||||
results.add(identity)
|
||||
for identity in Identity.objects.filter(username__startswith=handle)[:20]:
|
||||
for identity in Identity.objects.filter(username__istartswith=handle)[:20]:
|
||||
results.add(identity)
|
||||
return results
|
||||
|
||||
|
|
Loading…
Reference in a new issue