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.tsindex 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<ActivityDeleteif (activity.actor === objectUrl) {// We need more attributes (all the account and channel)const byActorFull = await ActorModel.loadByUrlAndPopulateAccountAndChannel(byActor.url)+ if (!byActorFull) returnif (isAccountActor(byActorFull.type)) {if (!byActorFull.Account) throw new Error(`Actor ${byActorFull.url} is a person but we cannot find the account in database.`)