Use id in uri instead of username
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import config from '../../../config';
|
||||
import { ILocalUser } from '../../../models/user';
|
||||
|
||||
export default (user: ILocalUser, note) => {
|
||||
return {
|
||||
type: 'Like',
|
||||
actor: `${config.url}/@${user.username}`,
|
||||
object: note.uri ? note.uri : `${config.url}/notes/${note._id}`
|
||||
};
|
||||
};
|
||||
export default (user: ILocalUser, note) => ({
|
||||
type: 'Like',
|
||||
actor: `${config.url}/users/${user._id}`,
|
||||
object: note.uri ? note.uri : `${config.url}/notes/${note._id}`
|
||||
});
|
||||
|
Reference in New Issue
Block a user