|
|
@ -679,6 +679,7 @@ var RDB = require('./redis.js')
|
|
|
|
Topics.getTopicForCategoryView(tid, uid, function(topicData) {
|
|
|
|
Topics.getTopicForCategoryView(tid, uid, function(topicData) {
|
|
|
|
io.sockets.in('category_' + category_id).emit('event:new_topic', topicData);
|
|
|
|
io.sockets.in('category_' + category_id).emit('event:new_topic', topicData);
|
|
|
|
io.sockets.in('recent_posts').emit('event:new_topic', topicData);
|
|
|
|
io.sockets.in('recent_posts').emit('event:new_topic', topicData);
|
|
|
|
|
|
|
|
io.sockets.in('users/' + uid).emit('event:new_post', {posts:postData});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
callback(null, postData);
|
|
|
|
callback(null, postData);
|
|
|
|