blob: 627a6533abdaef7bdeac1218027973f13bfd0ee3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import config from '@/config';
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
};
};
|