fixed ajaxify bug that was rendering pages twice (solved flicker issue); fixed entering rooms that was casuing rep/streaming posts to not work; fixed /accounts to work by adding get data route; fixed bug that preventing gravatars from loading if there was more than one post in the thread

This commit is contained in:
psychobunny
2013-05-06 03:41:22 +00:00
parent c906b7419a
commit 8a2c18de5b
5 changed files with 22 additions and 17 deletions

View File

@@ -52,10 +52,11 @@ var config = require('../config.js'),
User.get_gravatars_by_uids = function(uids, size, callback) {
var gravatars = [];
for(var i=0, ii=uids.length; i<ii; ++i) {
User.getUserField(uids[i], 'picture', function(picture) {
console.log(picture);
gravatars.push(picture);
if(gravatars.length >= uids.length)
callback(gravatars);