mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
add fullname to user return as well
This commit is contained in:
@@ -20,7 +20,7 @@ module.exports = function(Posts) {
|
||||
user.getMultipleUserSettings(uids, 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) {
|
||||
require('../socket.io').isUsersOnline(uids, next);
|
||||
|
||||
@@ -122,7 +122,7 @@ var async = require('async'),
|
||||
|
||||
async.parallel({
|
||||
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.getCategoriesFields(cids, ['cid', 'name', 'slug', 'icon', 'bgColor', 'color', 'disabled'], next);
|
||||
|
||||
Reference in New Issue
Block a user