fixes to gravatars and get functions in user.js

This commit is contained in:
Baris Soner Usakli
2013-05-05 18:07:54 -04:00
parent 8a0266562c
commit 954392e4c4
3 changed files with 37 additions and 35 deletions

View File

@@ -47,7 +47,7 @@ var RDB = require('./redis.js'),
post_rep = replies[3];
user.get_user_postdetails(uid, function(user_details) {
user.get_gravatars_by_uids(uid, '', function(gravatars) {
user.get_gravatars_by_uids([uid], '', function(gravatars) {
var posts = [];
var callbacks = content.length;
@@ -104,7 +104,7 @@ var RDB = require('./redis.js'),
user.get_gravatars_by_uids([uid], '', function(gravatars) {
var timestamp = new Date().getTime();
socket.in('topic_' + tid).emit('event:new_post', {
socket.on('topic_' + tid).emit('event:new_post', {
'posts' : [
{
'pid' : pid,