Do not fetch webfinger if when querying identity on local domain (#668)
This commit is contained in:
parent
6855e74c6f
commit
ac7fef4b28
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue