From 9e23279459d3180fe14aecb6287463acb679b86b Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 7 May 2013 17:27:38 +0000 Subject: [PATCH] fixed socket notifications for new posts --- src/posts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/posts.js b/src/posts.js index 4c729361b1..c437f57bc1 100644 --- a/src/posts.js +++ b/src/posts.js @@ -116,8 +116,8 @@ var RDB = require('./redis.js'), user.getUserFields(uid, ['username','reputation','picture'], function(data){ var timestamp = new Date().getTime(); - - socket.in('topic_' + tid).emit('event:new_post', { + + io.sockets.in('topic_' + tid).emit('event:new_post', { 'posts' : [ { 'pid' : pid,