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,7 +3,7 @@ import renderKey from './key';
|
|||
import config from '../../../config';
|
||||
|
||||
export default user => {
|
||||
const id = `${config.url}/@${user.username}`;
|
||||
const id = `${config.url}/users/${user._id}`;
|
||||
|
||||
return {
|
||||
type: 'Person',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue