Implement outbox
This commit is contained in:
parent
0cb6fbea8c
commit
1f1417a0f7
12 changed files with 161 additions and 76 deletions
9
src/common/remote/activitypub/renderer/key.ts
Normal file
9
src/common/remote/activitypub/renderer/key.ts
Normal 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)
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue