Node.js based forum software built for the modern web
feat: send back follow id in Accept
Opliko66b0d81cafd0
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.jsindex c496e0681b..a4b606df0e 100644--- a/src/activitypub/inbox.js+++ b/src/activitypub/inbox.js@@ -167,7 +167,7 @@ inbox.announce = async (req) => {};inbox.follow = async (req) => {- const { actor, object } = req.body;+ const { actor, object, id: followId } = req.body;// Sanity checksconst { type, id } = await helpers.resolveLocalId(object.id);if (!['category', 'user'].includes(type)) {@@ -201,8 +201,10 @@ inbox.follow = async (req) => {activitypub.send('uid', id, actor, {type: 'Accept',object: {+ id: followId,type: 'Follow',actor,+ object: object.id,},});} else if (type === 'category') {@@ -225,6 +227,7 @@ inbox.follow = async (req) => {activitypub.send('cid', id, actor, {type: 'Accept',object: {+ id: followId,type: 'Follow',actor,object: object.id,