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

9 lines
228 B
TypeScript
Raw Normal View History

2018-08-25 05:46:47 +00:00
import config from '../../../config';
2018-12-19 12:20:25 +00:00
import { ILocalUser, IUser } from '../../../models/user';
2018-08-25 05:46:47 +00:00
export default (object: any, user: ILocalUser | IUser) => ({
2018-04-03 08:18:06 +00:00
type: 'Undo',
2018-08-25 05:46:47 +00:00
actor: `${config.url}/users/${user._id}`,
2018-04-03 08:18:06 +00:00
object
});