summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/renderer/undo.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/remote/activitypub/renderer/undo.ts')
-rw-r--r--src/remote/activitypub/renderer/undo.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/remote/activitypub/renderer/undo.ts b/src/remote/activitypub/renderer/undo.ts
index dbcf5732be..2ff6b61b90 100644
--- a/src/remote/activitypub/renderer/undo.ts
+++ b/src/remote/activitypub/renderer/undo.ts
@@ -1,8 +1,8 @@
import config from '../../../config';
-import { ILocalUser, IUser } from '../../../models/user';
+import { ILocalUser, User } from '../../../models/entities/user';
-export default (object: any, user: ILocalUser | IUser) => ({
+export default (object: any, user: ILocalUser | User) => ({
type: 'Undo',
- actor: `${config.url}/users/${user._id}`,
+ actor: `${config.url}/users/${user.id}`,
object
});