Do not fetch webfinger if when querying identity on local domain (#668)

This commit is contained in:
Henri Dickson 2023-11-26 23:00:58 -05:00 committed by GitHub
parent 6855e74c6f
commit ac7fef4b28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -400,6 +400,8 @@ class Identity(StatorModel):
domain = domain.domain domain = domain.domain
else: else:
domain = domain.lower() domain = domain.lower()
domain_instance = Domain.get_domain(domain)
local = domain_instance.local if domain_instance else local
with transaction.atomic(): with transaction.atomic():
try: try: