From 038c41030858a98071200cdbb2b134aeaac7be9a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 13 Jan 2025 09:11:11 +0100 Subject: [PATCH] Fix http signature key url --- server/core/lib/activitypub/send/http.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/core/lib/activitypub/send/http.ts b/server/core/lib/activitypub/send/http.ts index 5771db9f5..7ebb5a46b 100644 --- a/server/core/lib/activitypub/send/http.ts +++ b/server/core/lib/activitypub/send/http.ts @@ -57,11 +57,10 @@ export async function buildSignedRequestOptions (options: { actor = await getServerActor() } - const keyId = actor.url return { algorithm: HTTP_SIGNATURE.ALGORITHM, authorizationHeaderName: HTTP_SIGNATURE.HEADER_NAME, - keyId, + keyId: actor.getPublicKeyUrl(), key: actor.privateKey, headers: options.hasPayload ? HTTP_SIGNATURE.HEADERS_TO_SIGN_WITH_PAYLOAD