Skip to content

Node.js based forum software built for the modern web

removed console.log

Baris Soner Usaklifd8e7327f0da
diff --git a/src/socket.io/topics.js b/src/socket.io/topics.js
index e07bc09211..0950e9fd6c 100644
--- a/src/socket.io/topics.js
+++ b/src/socket.io/topics.js
@@ -53,7 +53,6 @@ SocketTopics.post = function(socket, data, callback) {
}
if (result) {
- console.log(result.topicData);
index.server.sockets.in('category_' + data.category_id).emit('event:new_topic', result.topicData);
index.server.sockets.in('recent_posts').emit('event:new_topic', result.topicData);
index.server.sockets.in('user/' + socket.uid).emit('event:new_post', {
diff --git a/src/topics.js b/src/topics.js
index 4641a6ee5f..dbf370f645 100644
--- a/src/topics.js
+++ b/src/topics.js
@@ -143,7 +143,7 @@ var async = require('async'),
}
topicData = topicData[0];
topicData.unreplied = 1;
- console.log(topicData);
+
next(null, {
topicData: topicData,
postData: postData
@@ -688,7 +688,6 @@ var async = require('async'),
categoryTools.privileges(topicData.cid, current_user, next);
},
categoryData : function (next) {
- console.log(topicData.cid);
categories.getCategoryFields(topicData.cid, ['name', 'slug', 'icon'], next);
}
}, callback);