From 33eab0d178a2b20aa2935914fe7b7e97e3bea948 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Fri, 20 Oct 2023 12:54:25 +0200 Subject: [PATCH] upd: change handling of renewkeyFailed --- .../backend/src/queue/processors/InboxProcessorService.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/queue/processors/InboxProcessorService.ts b/packages/backend/src/queue/processors/InboxProcessorService.ts index b57f64f16..f69634968 100644 --- a/packages/backend/src/queue/processors/InboxProcessorService.ts +++ b/packages/backend/src/queue/processors/InboxProcessorService.ts @@ -108,15 +108,14 @@ export class InboxProcessorService { // また、signatureのsignerは、activity.actorと一致する必要がある if (!httpSignatureValidated || authUser.user.uri !== activity.actor) { - let renewKeyFailed = authUser.user.uri !== activity.actor ? true : false; + let renewKeyFailed = true; if (!httpSignatureValidated) { authUser.key = await this.apDbResolverService.refetchPublicKeyForApId(authUser.user); if (authUser.key != null) { httpSignatureValidated = httpSignature.verifySignature(signature, authUser.key.keyPem); - } else { - renewKeyFailed = true; + renewKeyFailed = false; } }