Skip to content

Node.js based forum software built for the modern web

Revert "fix: delete tid/pid when post is coming from post queue"

Julian Lam302c037c6880
diff --git a/src/posts/queue.js b/src/posts/queue.js
index b35ece6c80..b4459b9f6e 100644
--- a/src/posts/queue.js
+++ b/src/posts/queue.js
@@ -348,15 +348,12 @@ 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],