Merge branch 'master' of github.com:designcreateplay/NodeBB

v1.18.x
Julian Lam 12 years ago
commit fa4067e885

@ -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