From 2c3a1299709f2612e96c37e4e121c83ad4df7a56 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 9 Nov 2022 23:48:31 -0700 Subject: Profile fetching now working on state machine --- users/shortcuts.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'users/shortcuts.py') diff --git a/users/shortcuts.py b/users/shortcuts.py index 3e7618a..8e20a09 100644 --- a/users/shortcuts.py +++ b/users/shortcuts.py @@ -19,10 +19,7 @@ def by_handle_or_404(request, handle, local=True, fetch=False) -> Identity: else: username, domain = handle.split("@", 1) # Resolve the domain to the display domain - domain_instance = Domain.get_domain(domain) - if domain_instance is None: - raise Http404("No matching domains found") - domain = domain_instance.domain + domain = Domain.get_remote_domain(domain).domain identity = Identity.by_username_and_domain( username, domain, -- cgit v1.2.3