Use resolvable ActivityPub keyId

This commit is contained in:
mei23 2018-08-25 12:46:06 +09:00
parent 1f53d1a149
commit edb61e52c5
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export default (user: ILocalUser, url: string, object: any) => new Promise((reso
sign(req, { sign(req, {
authorizationHeaderName: 'Signature', authorizationHeaderName: 'Signature',
key: user.keypair, key: user.keypair,
keyId: `acct:${user.username}@${config.host}` keyId: `${config.url}/users/${user._id}/publickey`
}); });
// Signature: Signature ... => Signature: ... // Signature: Signature ... => Signature: ...