From 8003946feb2397c44faae25ef702fa09d3e61f7a Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 20 Jun 2024 22:20:36 -0400 Subject: [PATCH] Revert "fix: change setImmediate to a 5s timeout to give plugins (or anything waiting for the return value of the API call) a chance to finish execution" This reverts commit 7fada44bf2cc6ad17b62b7e5208dc2b1819b10ae. --- src/api/topics.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;