added home room emit

v1.18.x
barisusakli 11 years ago
parent a5f4135c62
commit 350070339b

@ -57,8 +57,10 @@ SocketTopics.post = function(socket, data, callback) {
}
if (result) {
index.server.sockets.in('category_' + data.category_id).emit('event:new_topic', result.topicData);
index.server.sockets.in('recent_posts').emit('event:new_topic', result.topicData);
index.server.sockets.in('home').emit('event:new_topic', result.topicData);
index.server.sockets.in('user/' + socket.uid).emit('event:new_post', {
posts: result.postData
});

Loading…
Cancel
Save