From 350070339b3b35929e569456491aea0b766c23ff Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 11 Mar 2014 15:18:14 -0400 Subject: [PATCH] added home room emit --- src/socket.io/topics.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/socket.io/topics.js b/src/socket.io/topics.js index f31084d943..6a3b4ea086 100644 --- a/src/socket.io/topics.js +++ b/src/socket.io/topics.js @@ -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 });