diff --git a/api/views/accounts.py b/api/views/accounts.py index b77ce09..f53ee50 100644 --- a/api/views/accounts.py +++ b/api/views/accounts.py @@ -86,8 +86,8 @@ def lookup(request: HttpRequest, acct: str): Quickly lookup a username to see if it is available, skipping WebFinger resolution. """ - acct = acct.lstrip("@") host = request.get_host() + acct = acct.lstrip("@").removesuffix(f"@{host}") identity = Identity.objects.filter( Q(domain__service_domain__iexact=host) | Q(domain__domain__iexact=host),