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 });