Node.js based forum software built for the modern web
fix: add timestamp to follow activity to make it unique
Julian Lameab231ee9fc9
diff --git a/src/api/activitypub.js b/src/api/activitypub.jsindex 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,});