From eab231ee9fc9768d1085f2b7fd7e77debbc1e370 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 4 Jul 2024 17:42:59 -0400 Subject: [PATCH] fix: add timestamp to follow activity to make it unique --- src/api/activitypub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/activitypub.js b/src/api/activitypub.js index 13e5d32189..c3750b92d1 100644 --- a/src/api/activitypub.js +++ b/src/api/activitypub.js @@ -40,7 +40,7 @@ activitypubApi.follow = enabledCheck(async (caller, { type, id, actor } = {}) => const handle = await user.getUserField(actor, 'username'); await activitypub.send(type, id, [actor], { - id: `${nconf.get('url')}/${type}/${id}#activity/follow/${handle}`, + id: `${nconf.get('url')}/${type}/${id}#activity/follow/${handle}/${Date.now()}`, type: 'Follow', object: actor, });