mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: add timestamp to follow activity to make it unique
This commit is contained in:
@@ -40,7 +40,7 @@ activitypubApi.follow = enabledCheck(async (caller, { type, id, actor } = {}) =>
|
|||||||
const handle = await user.getUserField(actor, 'username');
|
const handle = await user.getUserField(actor, 'username');
|
||||||
|
|
||||||
await activitypub.send(type, id, [actor], {
|
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',
|
type: 'Follow',
|
||||||
object: actor,
|
object: actor,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user