monkeeShark/src/remote/activitypub/renderer/undo.ts

13 lines
277 B
TypeScript
Raw Normal View History

import config from '@/config/index';
import { ILocalUser, User } from '@/models/entities/user';
2018-08-25 05:46:47 +00:00
export default (object: any, user: { id: User['id'] }) => {
if (object == null) return null;
return {
type: 'Undo',
actor: `${config.url}/users/${user.id}`,
object
};
};