summaryrefslogtreecommitdiff
path: root/src/remote
diff options
context:
space:
mode:
authormei23 <m@m544.net>2018-08-25 14:46:47 +0900
committermei23 <m@m544.net>2018-08-25 14:46:47 +0900
commita39aaf6eb1fb4da308f6a187aec42fce035574af (patch)
treee8477ea9f02da014567e98831e8a446dda932fb6 /src/remote
parentCreate Note activity にも toとcc (diff)
downloadsharkey-a39aaf6eb1fb4da308f6a187aec42fce035574af.tar.gz
sharkey-a39aaf6eb1fb4da308f6a187aec42fce035574af.tar.bz2
sharkey-a39aaf6eb1fb4da308f6a187aec42fce035574af.zip
Send actor in Undo Follow
Diffstat (limited to 'src/remote')
-rw-r--r--src/remote/activitypub/renderer/undo.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/remote/activitypub/renderer/undo.ts b/src/remote/activitypub/renderer/undo.ts
index 4498409a57..bf90a3f281 100644
--- a/src/remote/activitypub/renderer/undo.ts
+++ b/src/remote/activitypub/renderer/undo.ts
@@ -1,4 +1,8 @@
-export default (object: any) => ({
+import config from '../../../config';
+import { ILocalUser, IUser } from "../../../models/user";
+
+export default (object: any, user: ILocalUser | IUser) => ({
type: 'Undo',
+ actor: `${config.url}/users/${user._id}`,
object
});