add fullname to user return as well

v1.18.x
psychobunny 9 years ago
parent fef1eb4ced
commit 3305256575

@ -20,7 +20,7 @@ module.exports = function(Posts) {
user.getMultipleUserSettings(uids, next); user.getMultipleUserSettings(uids, next);
}, },
userData: function(next) { userData: function(next) {
user.getUsersFields(uids, ['uid', 'username', 'userslug', 'reputation', 'postcount', 'picture', 'signature', 'banned', 'status'], next); user.getUsersFields(uids, ['uid', 'username', 'fullname', 'userslug', 'reputation', 'postcount', 'picture', 'signature', 'banned', 'status'], next);
}, },
online: function(next) { online: function(next) {
require('../socket.io').isUsersOnline(uids, next); require('../socket.io').isUsersOnline(uids, next);

@ -122,7 +122,7 @@ var async = require('async'),
async.parallel({ async.parallel({
users: function(next) { users: function(next) {
user.getUsersFields(uids, ['uid', 'username', 'userslug', 'reputation', 'postcount', 'picture', 'signature', 'banned', 'status'], next); user.getUsersFields(uids, ['uid', 'username', 'fullname', 'userslug', 'reputation', 'postcount', 'picture', 'signature', 'banned', 'status'], next);
}, },
categories: function(next) { categories: function(next) {
categories.getCategoriesFields(cids, ['cid', 'name', 'slug', 'icon', 'bgColor', 'color', 'disabled'], next); categories.getCategoriesFields(cids, ['cid', 'name', 'slug', 'icon', 'bgColor', 'color', 'disabled'], next);

Loading…
Cancel
Save