fix: on user deletion during assertion (due to 410), if delete fails, just run ap post-deletion to clean up

This commit is contained in:
Julian Lam
2025-03-26 13:45:30 -04:00
parent 7d32cdacb2
commit 4bbe27d44c

View File

@@ -149,7 +149,11 @@ Actors.assert = async (ids, options = {}) => {
if (e.code === 'ap_get_410') {
const exists = await user.exists(id);
if (exists) {
await user.deleteAccount(id);
try {
await user.deleteAccount(id);
} catch (e) {
await activitypub.actors.remove(iid);
}
}
}