From fd8e7327f0da28a160504ecb0d45880bb96c9c7f Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Tue, 25 Feb 2014 14:05:14 -0500 Subject: [PATCH] removed console.log --- src/socket.io/topics.js | 1 - src/topics.js | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) 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);