Node.js based forum software built for the modern web
fix: deletions must be made by an actor of the same origin
Julian Lam18b4d6c5d67c
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.jsindex 737d5124eb..ecbc2a8f46 100644--- a/src/activitypub/inbox.js+++ b/src/activitypub/inbox.js@@ -476,9 +476,9 @@ inbox.announce = async (req) => {}// Deletions must be made by an actor of the same origin- const actorHostname = new URL(actor).hostname;- const objectHostname = new URL(id).hostname;- if (actorHostname !== objectHostname) {+ const announcerHostname = new URL(actor).hostname;+ const actorHostname = new URL(object.actor).hostname;+ if (announcerHostname !== actorHostname) {throw new Error('[[error:activitypub.origin-mismatch]]');}