diff --git a/src/api/topics.js b/src/api/topics.js index 2ca2977766..21d7111c62 100644 --- a/src/api/topics.js +++ b/src/api/topics.js @@ -82,9 +82,9 @@ topicsAPI.create = async function (caller, data) { socketHelpers.notifyNew(caller.uid, 'newTopic', { posts: [result.postData], topic: result.topicData }); if (!isScheduling) { - setTimeout(() => { + setImmediate(() => { activitypubApi.create.note(caller, { pid: result.postData.pid }); - }, 5000); + }); } return result.topicData;