fixed incorrect scoping for new post event introduced accidentally last commit

v1.18.x
Julian Lam 11 years ago
parent 90616c6e7b
commit 682fa1f874

@ -71,7 +71,7 @@ SocketPosts.reply = function(socket, data, callback) {
posts: [postData]
};
index.server.sockets.in('topic_' + postData.tid).emit('event:new_post', socketData);
index.server.sockets.emit('event:new_post', socketData);
callback();
}

Loading…
Cancel
Save