monkeeShark/src/remote/activitypub/renderer/like.ts

10 lines
215 B
TypeScript
Raw Normal View History

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