mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 23:53:09 +02:00
10 lines
364 B
TypeScript
10 lines
364 B
TypeScript
import config from '../../../config';
|
|
import { ILocalUser } from '../../../models/user';
|
|
import { INote } from '../../../models/note';
|
|
|
|
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}`,
|
|
_misskey_reaction: reaction
|
|
});
|