mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-26 09:11:00 +00:00
Handle remote user deletions
This commit is contained in:
parent
2d7f33879f
commit
94d92fdf8a
1 changed files with 4 additions and 0 deletions
|
@ -327,6 +327,10 @@ class Identity(StatorModel):
|
||||||
)
|
)
|
||||||
except httpx.RequestError:
|
except httpx.RequestError:
|
||||||
return False
|
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:
|
if response.status_code >= 400:
|
||||||
return False
|
return False
|
||||||
document = canonicalise(response.json(), include_security=True)
|
document = canonicalise(response.json(), include_security=True)
|
||||||
|
|
Loading…
Reference in a new issue