fix: loosen actor-matching check in Undo activity

This commit is contained in:
Julian Lam
2026-03-30 10:29:23 -04:00
parent c37a9103c8
commit be347e674b
2 changed files with 0 additions and 5 deletions

View File

@@ -307,6 +307,5 @@
"activitypub.get-failed": "Unable to retrieve the specified resource.",
"activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.",
"activitypub.origin-mismatch": "The received object's origin does not match the sender's origin",
"activitypub.actor-mismatch": "The received activity is being carried out by an actor that is different from expected.",
"activitypub.not-implemented": "The request was denied because it or an aspect of it is not implemented by the recipient server"
}

View File

@@ -627,10 +627,6 @@ inbox.undo = async (req) => {
const { actor, object } = req.body;
const { type } = object;
if (actor !== object.actor) {
throw new Error('[[error:activitypub.actor-mismatch]]');
}
const assertion = await activitypub.actors.assert(actor);
if (!assertion) {
throw new Error('[[error:activitypub.invalid-id]]');