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

View file

@ -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: