trashposs/src/remote/activitypub/renderer/delete.ts

9 lines
215 B
TypeScript
Raw Normal View History

2018-08-25 07:52:35 +02:00
import config from '../../../config';
import { ILocalUser } from "../../../models/user";
export default (object: any, user: ILocalUser) => ({
2018-05-28 07:39:46 +02:00
type: 'Delete',
2018-08-25 07:52:35 +02:00
actor: `${config.url}/users/${user._id}`,
2018-05-28 07:39:46 +02:00
object
});