Perform webfinger search on all username syntaxes

This commit is contained in:
Mouse Reeve 2021-03-31 11:57:39 -07:00
parent 44c8f64239
commit daf2fd1667

View file

@ -31,7 +31,7 @@ class Search(View):
return JsonResponse([r.json() for r in book_results], safe=False)
# use webfinger for mastodon style account@domain.com username
if re.match(r"\B%s" % regex.full_username, query):
if re.match(regex.full_username, query):
handle_remote_webfinger(query)
# do a user search