added topic tests

This commit is contained in:
Baris Usakli
2013-11-15 16:16:50 -05:00
parent 7c1b6d6ad2
commit 54d94f5988
4 changed files with 186 additions and 98 deletions

View File

@@ -380,6 +380,12 @@ module.exports.init = function(io) {
}
if (result) {
io.sockets.in('category_' + data.category_id).emit('event:new_topic', topicData);
io.sockets.in('recent_posts').emit('event:new_topic', topicData);
io.sockets.in('user/' + uid).emit('event:new_post', {
posts: postData
});
posts.getTopicPostStats();
socket.emit('event:alert', {