Node.js based forum software built for the modern web
fix: delete tid/pid when post is coming from post queue
Barış Soner Uşaklı73f908b30277
diff --git a/src/posts/queue.js b/src/posts/queue.jsindex fe98c3494c..75cc17d940 100644--- a/src/posts/queue.js+++ b/src/posts/queue.js@@ -340,12 +340,15 @@ module.exports = function (Posts) {}async function createTopic(data) {+ delete data.tid;+ delete data.pid;const result = await topics.post(data);socketHelpers.notifyNew(data.uid, 'newTopic', { posts: [result.postData], topic: result.topicData });return result;}async function createReply(data) {+ delete data.pid;const postData = await topics.reply(data);const result = {posts: [postData],