Skip to content

Node.js based forum software built for the modern web

fix: send actor in undo(follow)

Julian Lam49b5268e529a
diff --git a/src/api/activitypub.js b/src/api/activitypub.js
index 57a9bfe287..1f074f6776 100644
--- a/src/api/activitypub.js
+++ b/src/api/activitypub.js
@@ -119,6 +119,7 @@ activitypubApi.unfollow = enabledCheck(async (caller, { type, id, actor }) => {
await activitypub.send(type, id, [actor], {
id: `${nconf.get('url')}/${type}/${id}#activity/undo:follow/${encodeURIComponent(actor)}/${timestamp}`,
type: 'Undo',
+ actor: object.actor,
object,
});