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

9 lines
228 B
TypeScript
Raw Normal View History

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