stringify into window.env only what we really need, save a lot of KBs
This commit is contained in:
@@ -99,10 +99,12 @@ expressres.jsonstring = function(obj, headers, status) {
|
||||
|
||||
|
||||
dataexport.avatarPage = function(req, res) {
|
||||
var env = _.defaults({user:user}, res.locals.habitrpg);
|
||||
|
||||
User.findById(req.params.uuid).select('stats profile items achievements preferences backer contributor').exec(function(err, user){
|
||||
res.render('avatar-static', {
|
||||
title: user.profile.name,
|
||||
env: _.defaults({user:user},res.locals.habitrpg)
|
||||
env: env
|
||||
});
|
||||
})
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user