0e4a111f81
Resolve #7779
10 lines
268 B
TypeScript
10 lines
268 B
TypeScript
import config from '@/config/index';
|
|
import { User } from '@/models/entities/user';
|
|
|
|
export default (object: any, user: { id: User['id']; host: null }) => ({
|
|
type: 'Delete',
|
|
actor: `${config.url}/users/${user.id}`,
|
|
object,
|
|
published: new Date().toISOString(),
|
|
});
|