This commit is contained in:
Bryan Ashby 2023-04-19 13:46:11 -06:00
parent faf8ccaaf8
commit 71076c8e90
No known key found for this signature in database
GPG Key ID: C2C1B501E4EFD994
1 changed files with 5 additions and 2 deletions

View File

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