他のMisskeyインスタンスにリアクション情報を伝えるように
This commit is contained in:
parent
0b99483ccb
commit
02bb99ac02
6 changed files with 31 additions and 15 deletions
|
|
@ -1,8 +1,9 @@
|
|||
import config from '../../../config';
|
||||
import { ILocalUser } from '../../../models/user';
|
||||
|
||||
export default (user: ILocalUser, note) => ({
|
||||
export default (user: ILocalUser, note, reaction: string) => ({
|
||||
type: 'Like',
|
||||
actor: `${config.url}/users/${user._id}`,
|
||||
object: note.uri ? note.uri : `${config.url}/notes/${note._id}`
|
||||
object: note.uri ? note.uri : `${config.url}/notes/${note._id}`,
|
||||
_misskey_reaction: reaction
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue