From 1357b076d02a54dbbbde3c5f19ec1a829a81ebb7 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 2 Mar 2024 13:53:52 +0000 Subject: [PATCH] use requiredInputs https://github.com/misskey-dev/misskey/pull/13464#discussion_r1509964359 --- packages/backend/src/server/ActivityPubServerService.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/ActivityPubServerService.ts b/packages/backend/src/server/ActivityPubServerService.ts index 204b9e7aa7..ba0adac03b 100644 --- a/packages/backend/src/server/ActivityPubServerService.ts +++ b/packages/backend/src/server/ActivityPubServerService.ts @@ -110,7 +110,11 @@ export class ActivityPubServerService { } try { - signature = parseRequestSignature(request.raw); + signature = parseRequestSignature(request.raw, { + requiredInputs: { + draft: ['(request-target)', 'digest', 'host', 'date'], + }, + }); } catch (e) { reply.code(401); return;