From edb61e52c5f3619d818c280b0e852368d2fbc09a Mon Sep 17 00:00:00 2001 From: mei23 Date: Sat, 25 Aug 2018 12:46:06 +0900 Subject: [PATCH] Use resolvable ActivityPub keyId --- src/remote/activitypub/request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote/activitypub/request.ts b/src/remote/activitypub/request.ts index cebce8c48..6238d3acb 100644 --- a/src/remote/activitypub/request.ts +++ b/src/remote/activitypub/request.ts @@ -35,7 +35,7 @@ export default (user: ILocalUser, url: string, object: any) => new Promise((reso sign(req, { authorizationHeaderName: 'Signature', key: user.keypair, - keyId: `acct:${user.username}@${config.host}` + keyId: `${config.url}/users/${user._id}/publickey` }); // Signature: Signature ... => Signature: ...