From ac7fef4b282ebe610c532d894cb1bfe36df51e6d Mon Sep 17 00:00:00 2001 From: Henri Dickson <90480431+alphatownsman@users.noreply.github.com> Date: Sun, 26 Nov 2023 23:00:58 -0500 Subject: [PATCH] Do not fetch webfinger if when querying identity on local domain (#668) --- users/models/identity.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/users/models/identity.py b/users/models/identity.py index 8a31df5..5027ae3 100644 --- a/users/models/identity.py +++ b/users/models/identity.py @@ -400,6 +400,8 @@ class Identity(StatorModel): domain = domain.domain else: domain = domain.lower() + domain_instance = Domain.get_domain(domain) + local = domain_instance.local if domain_instance else local with transaction.atomic(): try: