misskey/src/remote/activitypub/renderer/like.ts
syuilo 6e34e77372 Implement announce
And bug fixes
2018-04-08 06:55:26 +09:00

11 lines
278 B
TypeScript

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}`
};
};