summaryrefslogtreecommitdiff
path: root/src/remote/activitypub
diff options
context:
space:
mode:
authormei23 <m@m544.net>2018-08-25 12:46:06 +0900
committermei23 <m@m544.net>2018-08-25 12:46:06 +0900
commitedb61e52c5f3619d818c280b0e852368d2fbc09a (patch)
tree4e52c244411f49e7ef800c1da022ff2356121e92 /src/remote/activitypub
parentSend Content-Type in ActivityPub request (diff)
downloadsharkey-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.ts2
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: ...