From 71076c8e90b50492b7c73759f972a444c5f00654 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Wed, 19 Apr 2023 13:46:11 -0600 Subject: [PATCH] Dumb fix --- core/servers/content/web_handlers/activitypub.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/servers/content/web_handlers/activitypub.js b/core/servers/content/web_handlers/activitypub.js index 206cedfd..ac9b86f9 100644 --- a/core/servers/content/web_handlers/activitypub.js +++ b/core/servers/content/web_handlers/activitypub.js @@ -216,7 +216,7 @@ exports.getModule = class ActivityPubWebHandler extends WebHandlerModule { } _getAssociatedActors(objectActorId, signatureActorId, cb) { - signatureActorId = async.waterfall( + async.waterfall( [ callback => { Actor.fromId(objectActorId, (err, objectActor) => { @@ -268,7 +268,10 @@ exports.getModule = class ActivityPubWebHandler extends WebHandlerModule { getActorId(activity), signature.keyId.split('#', 1)[0], // trim #main-key (err, remoteActor, signatureActor) => { - //Actor.fromId(getActorId(activity), (err, remoteActor) => { + if (err) { + return this.webServer.accept(resp); + } + // validate sig up front const httpSigValidated = remoteActor &&