misskey/src/remote/activitypub/renderer/add.ts
2018-09-18 13:08:27 +09:00

10 lines
234 B
TypeScript

import config from '../../../config';
import { ILocalUser } from '../../../models/user';
export default (user: ILocalUser, target: any, object: any) => ({
type: 'Add',
actor: `${config.url}/users/${user._id}`,
target,
object
});