1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-28 13:39:11 +09:00
misskey/src/remote/activitypub/renderer/undo.ts
2018-08-25 14:46:47 +09:00

9 lines
228 B
TypeScript

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