v1.18.x
Baris Soner Usakli 12 years ago
parent 54d94f5988
commit a827888ee3

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

Loading…
Cancel
Save