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