From c76f0f1679459349e9362dc01a9f617a8ae8cfe3 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Fri, 20 Oct 2023 12:53:14 +0200 Subject: [PATCH] fix: set boolean to true if uri doesn't match activity actor --- packages/backend/src/queue/processors/InboxProcessorService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/queue/processors/InboxProcessorService.ts b/packages/backend/src/queue/processors/InboxProcessorService.ts index f51c9f140..b57f64f16 100644 --- a/packages/backend/src/queue/processors/InboxProcessorService.ts +++ b/packages/backend/src/queue/processors/InboxProcessorService.ts @@ -108,7 +108,7 @@ export class InboxProcessorService { // また、signatureのsignerは、activity.actorと一致する必要がある if (!httpSignatureValidated || authUser.user.uri !== activity.actor) { - let renewKeyFailed = false; + let renewKeyFailed = authUser.user.uri !== activity.actor ? true : false; if (!httpSignatureValidated) { authUser.key = await this.apDbResolverService.refetchPublicKeyForApId(authUser.user);