Implement like

This commit is contained in:
syuilo
2018-04-07 17:05:14 +09:00
parent 321f61f1cb
commit c5f23bce78
7 changed files with 131 additions and 137 deletions

View File

@@ -0,0 +1,9 @@
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}`
};
};