Implement outbox

This commit is contained in:
Akihiko Odaki
2018-04-01 19:18:36 +09:00
parent 0cb6fbea8c
commit 1f1417a0f7
12 changed files with 161 additions and 76 deletions

View File

@@ -0,0 +1,9 @@
import config from '../../../../conf';
import { extractPublic } from '../../../../crypto_key';
import { ILocalAccount } from '../../../../models/user';
export default ({ username, account }) => ({
type: 'Key',
owner: `${config.url}/@${username}`,
publicKeyPem: extractPublic((account as ILocalAccount).keypair)
});