removed double post notification #1386

This commit is contained in:
barisusakli
2014-04-16 15:46:50 -04:00
parent f9897daad1
commit f0428f5f1f
4 changed files with 4 additions and 30 deletions

View File

@@ -33,15 +33,12 @@ SocketPosts.reply = function(socket, data, callback) {
}
if (postData) {
websockets.server.sockets.emit('event:new_post', {
posts: [postData]
});
module.parent.exports.emitTopicPostStats();
var socketData = {
posts: [postData]
};
websockets.server.sockets.emit('event:new_post', socketData);
callback();
}
});