fixed socket notifications for new posts

v1.18.x
psychobunny 12 years ago
parent 4b32089367
commit 9e23279459

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

Loading…
Cancel
Save