mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: introduce artificial 5s delay for 1b12 announces
This commit is contained in:
@@ -163,7 +163,9 @@ activitypubApi.create.note = enabledCheck(async (caller, { pid }) => {
|
||||
|
||||
await activitypub.send('uid', caller.uid, Array.from(targets), payloads.create);
|
||||
if (followers.length) {
|
||||
await activitypub.send('cid', cid, followers, payloads.announce);
|
||||
setTimeout(() => { // Delay sending to avoid potential race condition
|
||||
activitypub.send('cid', cid, followers, payloads.announce);
|
||||
}, 5000);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user