parent
c7106d250c
commit
a1b490afa7
167 changed files with 4440 additions and 1762 deletions
|
|
@ -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}`
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue