fix: add timestamp to follow activity to make it unique

This commit is contained in:
Julian Lam
2024-07-04 17:42:59 -04:00
parent cb5e5b4bdb
commit eab231ee9f

View File

@@ -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,
});