Make webfinger match usernames in case insensitive manner

This commit is contained in:
D Anzorge
2021-08-27 21:27:54 +02:00
parent 691f9c01c4
commit 92b96afc2d
2 changed files with 11 additions and 1 deletions

View File

@ -20,7 +20,7 @@ def webfinger(request):
username = resource.replace("acct:", "")
try:
user = models.User.objects.get(username=username)
user = models.User.objects.get(username__iexact=username)
except models.User.DoesNotExist:
return HttpResponseNotFound("No account found")