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 &&