Refactor
This commit is contained in:
parent
e8bde94e5b
commit
cd2542e0fd
99 changed files with 111 additions and 111 deletions
|
|
@ -1,10 +0,0 @@
|
|||
import config from '../../../../conf';
|
||||
import { extractPublic } from '../../../../crypto_key';
|
||||
import { ILocalUser } from '../../../../models/user';
|
||||
|
||||
export default (user: ILocalUser) => ({
|
||||
id: `${config.url}/@${user.username}/publickey`,
|
||||
type: 'Key',
|
||||
owner: `${config.url}/@${user.username}`,
|
||||
publicKeyPem: extractPublic(user.account.keypair)
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue