Post --> Note

Closes #1411
This commit is contained in:
syuilo
2018-04-08 02:30:37 +09:00
parent c7106d250c
commit a1b490afa7
167 changed files with 4440 additions and 1762 deletions

View File

@@ -1,9 +1,9 @@
import config from '../../../config';
export default (user, post) => {
export default (user, note) => {
return {
type: 'Like',
actor: `${config.url}/@${user.username}`,
object: post.uri ? post.uri : `${config.url}/posts/${post._id}`
object: note.uri ? note.uri : `${config.url}/notes/${note._id}`
};
};