mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user