mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-17 13:46:34 +01:00
10 lines
319 B
TypeScript
10 lines
319 B
TypeScript
|
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)
|
||
|
});
|