sharkey/packages/backend/src/remote/activitypub/renderer/remove.ts
syuilo 0e4a111f81 refactoring
Resolve #7779
2021-11-12 02:02:25 +09:00

10 lines
239 B
TypeScript

import config from '@/config/index';
import { User } from '@/models/entities/user';
export default (user: { id: User['id'] }, target: any, object: any) => ({
type: 'Remove',
actor: `${config.url}/users/${user.id}`,
target,
object
});