@ -79,8 +79,8 @@ SocketRooms.getAll = function(socket, data, callback) {
totals.topics = {};
topTenTopics.forEach(function(topic, index) {
totals.topics[topic.tid] = {
value: topic.count || 0,
title: validator.escape(titles[index].title)
};
});
@ -536,7 +536,7 @@ Upgrade.upgrade = function(callback) {
if (err) {
return next(err);
}
if (!userData.picture || !userData.gravatarpicture) {
return next();
@ -548,7 +548,7 @@ Upgrade.upgrade = function(callback) {
},
function (next) {
db.deleteObjectField('user:' + uid, 'gravatarpicture', next);
], next);
} else {