From 3cc09d204f9b7d61f5253c32aedf0fa3f50e1ae1 Mon Sep 17 00:00:00 2001 From: Opliko Date: Wed, 10 Apr 2024 01:11:49 +0200 Subject: [PATCH] feat: add ids for undoing follows --- src/api/activitypub.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/activitypub.js b/src/api/activitypub.js index a36f40a337..383fb374a2 100644 --- a/src/api/activitypub.js +++ b/src/api/activitypub.js @@ -54,8 +54,10 @@ activitypubApi.unfollow = enabledCheck(async (caller, { uid }) => { } await activitypub.send('uid', caller.uid, [result.actorUri], { + id: `${nconf.get('url')}/uid/${caller.uid}#activity/undo:follow/${result.username}@${result.hostname}`, type: 'Undo', object: { + id: `${nconf.get('url')}/uid/${caller.uid}#activity/follow/${result.username}@${result.hostname}`, type: 'Follow', actor: `${nconf.get('url')}/uid/${caller.uid}`, object: result.actorUri,