Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix deleting an unknown actor

Chocobozzz7e9fba3ae5c1
diff --git a/server/core/lib/activitypub/process/process-delete.ts b/server/core/lib/activitypub/process/process-delete.ts
index 1c1404fcb2..e38e645135 100644
--- a/server/core/lib/activitypub/process/process-delete.ts
+++ b/server/core/lib/activitypub/process/process-delete.ts
@@ -27,6 +27,7 @@ async function processDeleteActivity (options: APProcessorOptions<ActivityDelete
if (activity.actor === objectUrl) {
// We need more attributes (all the account and channel)
const byActorFull = await ActorModel.loadByUrlAndPopulateAccountAndChannel(byActor.url)
+ if (!byActorFull) return
if (isAccountActor(byActorFull.type)) {
if (!byActorFull.Account) throw new Error(`Actor ${byActorFull.url} is a person but we cannot find the account in database.`)