Use id in uri instead of username
This commit is contained in:
parent
1fced8a59b
commit
e63f884bc6
14 changed files with 52 additions and 87 deletions
|
|
@ -3,8 +3,8 @@ import { extractPublic } from '../../../crypto_key';
|
|||
import { ILocalUser } from '../../../models/user';
|
||||
|
||||
export default (user: ILocalUser) => ({
|
||||
id: `${config.url}/@${user.username}/publickey`,
|
||||
id: `${config.url}/users/${user._id}/publickey`,
|
||||
type: 'Key',
|
||||
owner: `${config.url}/@${user.username}`,
|
||||
owner: `${config.url}/users/${user._id}`,
|
||||
publicKeyPem: extractPublic(user.keypair)
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue