10 lines
311 B
TypeScript
10 lines
311 B
TypeScript
import config from '../../../config';
|
|
import { ILocalUser } from '../../../models/user';
|
|
|
|
export default (user: ILocalUser, note, reaction: string) => ({
|
|
type: 'Like',
|
|
actor: `${config.url}/users/${user._id}`,
|
|
object: note.uri ? note.uri : `${config.url}/notes/${note._id}`,
|
|
_misskey_reaction: reaction
|
|
});
|