Skip to content

Node.js based forum software built for the modern web

fix(activitypub): send full Follow activity as Accept object for unsolicited follows

Julian Lam9d44d1a57973
diff --git a/src/activitypub/relays.js b/src/activitypub/relays.js
index b1f536a788..bba93e5c47 100644
--- a/src/activitypub/relays.js
+++ b/src/activitypub/relays.js
@@ -143,7 +143,7 @@ Relays.handshake = async (body) => {
type: 'Accept',
to: [actor],
published: now.toISOString(),
- object: isUnsolicited ? followActivity : body,
+ object: body,
});
} else if (type === 'Accept') {
if (isUnsolicited) {