From b7629c6ef72a72cd3e8125425a3d6ac511d240d4 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 15 Apr 2024 09:48:58 -0400 Subject: [PATCH] feat: send id back during accepts --- src/activitypub/inbox.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.js index ed69a64885..1217a49511 100644 --- a/src/activitypub/inbox.js +++ b/src/activitypub/inbox.js @@ -178,6 +178,7 @@ inbox.follow = async (req) => { if (!assertion) { throw new Error('[[error:activitypub.invalid-id]]'); } + const handle = await user.getUserField(actor, 'username'); if (type === 'user') { const exists = await user.exists(id); @@ -199,6 +200,7 @@ inbox.follow = async (req) => { user.onFollow(actor, id); activitypub.send('uid', id, actor, { + id: `${nconf.get('url')}/${type}/${id}#activity/accept:follow/${handle}`, type: 'Accept', object: { id: followId, @@ -225,6 +227,7 @@ inbox.follow = async (req) => { } activitypub.send('cid', id, actor, { + id: `${nconf.get('url')}/${type}/${id}#activity/accept:follow/${handle}`, type: 'Accept', object: { id: followId,