misskey/src/remote/activitypub/renderer/add.ts

10 lines
234 B
TypeScript
Raw Normal View History

2018-09-18 06:08:27 +02:00
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
});