summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorAkihiko Odaki <nekomanma@pixiv.co.jp>2018-04-01 20:07:04 +0900
committerAkihiko Odaki <nekomanma@pixiv.co.jp>2018-04-01 20:07:04 +0900
commitcba73d6bc1eeb44ad2beac2566812daa9ec32751 (patch)
treea7a2c68bce04b9ed6e1d469e4ebdc8505587d790 /src/common
parentUpdate README.md (diff)
downloadmisskey-cba73d6bc1eeb44ad2beac2566812daa9ec32751.tar.gz
misskey-cba73d6bc1eeb44ad2beac2566812daa9ec32751.tar.bz2
misskey-cba73d6bc1eeb44ad2beac2566812daa9ec32751.zip
Implement account public key endpoint
Diffstat (limited to 'src/common')
-rw-r--r--src/common/remote/activitypub/renderer/key.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/remote/activitypub/renderer/key.ts b/src/common/remote/activitypub/renderer/key.ts
index 7148c59745..692c71f88e 100644
--- a/src/common/remote/activitypub/renderer/key.ts
+++ b/src/common/remote/activitypub/renderer/key.ts
@@ -3,6 +3,7 @@ import { extractPublic } from '../../../../crypto_key';
import { ILocalAccount } from '../../../../models/user';
export default ({ username, account }) => ({
+ id: `${config.url}/@${username}/publickey`,
type: 'Key',
owner: `${config.url}/@${username}`,
publicKeyPem: extractPublic((account as ILocalAccount).keypair)