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 7fada44bf2.
This commit is contained in:
Julian Lam
2024-06-20 22:20:36 -04:00
parent 7d679db28e
commit 8003946feb

View File

@@ -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;