diff options
| author | mei23 <m@m544.net> | 2018-08-25 12:46:06 +0900 |
|---|---|---|
| committer | mei23 <m@m544.net> | 2018-08-25 12:46:06 +0900 |
| commit | edb61e52c5f3619d818c280b0e852368d2fbc09a (patch) | |
| tree | 4e52c244411f49e7ef800c1da022ff2356121e92 /src/remote/activitypub | |
| parent | Send Content-Type in ActivityPub request (diff) | |
| download | sharkey-edb61e52c5f3619d818c280b0e852368d2fbc09a.tar.gz sharkey-edb61e52c5f3619d818c280b0e852368d2fbc09a.tar.bz2 sharkey-edb61e52c5f3619d818c280b0e852368d2fbc09a.zip | |
Use resolvable ActivityPub keyId
Diffstat (limited to 'src/remote/activitypub')
| -rw-r--r-- | src/remote/activitypub/request.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote/activitypub/request.ts b/src/remote/activitypub/request.ts index cebce8c48a..6238d3acb1 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: ... |