fixed bug in active users causing moderators to not show up and only one active user being shown

v1.18.x
psychobunny 12 years ago
parent e256ee99f7
commit fd8c0c5097

@ -122,9 +122,9 @@ var RDB = require('./redis.js'),
}
});
var active_users = {};
var active_users = [];
for (var username in active_usernames) {
active_users['username'] = active_usernames[username];
active_users.push({'username': active_usernames[username]});
}
callback({
@ -148,6 +148,7 @@ var RDB = require('./redis.js'),
});
categories.getModerators(category_id, function(mods) {
console.log(mods);
moderators = mods;
generate_topic();
})

Loading…
Cancel
Save