2018-04-07 17:05:14 +09:00
|
|
|
import config from '../../../config';
|
|
|
|
|
2018-04-08 02:30:37 +09:00
|
|
|
export default (user, note) => {
|
2018-04-07 17:05:14 +09:00
|
|
|
return {
|
|
|
|
type: 'Like',
|
|
|
|
actor: `${config.url}/@${user.username}`,
|
2018-04-08 02:30:37 +09:00
|
|
|
object: note.uri ? note.uri : `${config.url}/notes/${note._id}`
|
2018-04-07 17:05:14 +09:00
|
|
|
};
|
|
|
|
};
|