fixed socket notifications for new posts

This commit is contained in:
psychobunny
2013-05-07 17:27:38 +00:00
parent 4b32089367
commit 9e23279459

View File

@@ -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,