creating topics shows up in user profile too issue #220

v1.18.x
Baris Usakli 12 years ago
parent d3818e888e
commit e0cc35ba66

@ -74,7 +74,7 @@
socket.on('event:new_post', function(data) {
var html = templates.prepare(templates['account'].blocks['posts']).parse(data);
$('.user-recent-posts').prepend(html);
})
});
});

@ -679,6 +679,7 @@ var RDB = require('./redis.js')
Topics.getTopicForCategoryView(tid, uid, function(topicData) {
io.sockets.in('category_' + category_id).emit('event:new_topic', topicData);
io.sockets.in('recent_posts').emit('event:new_topic', topicData);
io.sockets.in('users/' + uid).emit('event:new_post', {posts:postData});
});
callback(null, postData);

Loading…
Cancel
Save