yatta
This commit is contained in:
parent
80e5645a84
commit
e66d7babc5
56 changed files with 115 additions and 112 deletions
|
|
@ -1,7 +1,8 @@
|
|||
import config from '../../../config';
|
||||
import { ILocalUser } from '../../../models/user';
|
||||
import { INote } from '../../../models/note';
|
||||
|
||||
export default (user: ILocalUser, note, reaction: string) => ({
|
||||
export default (user: ILocalUser, note: INote, reaction: string) => ({
|
||||
type: 'Like',
|
||||
actor: `${config.url}/users/${user._id}`,
|
||||
object: note.uri ? note.uri : `${config.url}/notes/${note._id}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue