Skip to content

Node.js based forum software built for the modern web

fix: remove console logging

Julian Lam4c2cbb5b1254
diff --git a/src/topics/posts.js b/src/topics/posts.js
index a384bfe069..bf967291e1 100644
--- a/src/topics/posts.js
+++ b/src/topics/posts.js
@@ -246,12 +246,9 @@ module.exports = function (Topics) {
};
Topics.addPostToTopic = async function (tid, postData) {
- console.log('now in addPostToTopic', tid, postData);
const mainPid = await Topics.getTopicField(tid, 'mainPid');
- console.log(mainPid);
if (!mainPid) {
await Topics.setTopicField(tid, 'mainPid', postData.pid);
- console.log('what');
} else {
const upvotes = parseInt(postData.upvotes, 10) || 0;
const downvotes = parseInt(postData.downvotes, 10) || 0;