Handle remote user deletions
This commit is contained in:
parent
2d7f33879f
commit
94d92fdf8a
|
@ -327,6 +327,10 @@ class Identity(StatorModel):
|
|||
)
|
||||
except httpx.RequestError:
|
||||
return False
|
||||
if response.status_code == 410:
|
||||
# Their account got deleted, so let's do the same.
|
||||
await Identity.objects.filter(pk=self.pk).adelete()
|
||||
return False
|
||||
if response.status_code >= 400:
|
||||
return False
|
||||
document = canonicalise(response.json(), include_security=True)
|
||||
|
|
Loading…
Reference in New Issue