blob: f9082ffdfcbb32a52021f1dcf337b775c0bbf771 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import config from '@/config/index';
import { ILocalUser, User } from '@/models/entities/user';
export default (object: any, user: { id: User['id'] }) => {
if (object == null) return null;
return {
type: 'Undo',
actor: `${config.url}/users/${user.id}`,
object
};
};
|