mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-18 02:01:08 +09:00
6e34e77372
And bug fixes
11 lines
278 B
TypeScript
11 lines
278 B
TypeScript
import config from '../../../config';
|
|
import { ILocalUser } from '../../../models/user';
|
|
|
|
export default (user: ILocalUser, note) => {
|
|
return {
|
|
type: 'Like',
|
|
actor: `${config.url}/@${user.username}`,
|
|
object: note.uri ? note.uri : `${config.url}/notes/${note._id}`
|
|
};
|
|
};
|