From 33052565759ae27908ffe2c2ba0e28a2026369fa Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 29 Oct 2015 18:46:52 -0400 Subject: [PATCH] add fullname to user return as well --- src/posts/user.js | 2 +- src/topics.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/posts/user.js b/src/posts/user.js index 6cd4960a6b..a3ddb3bc12 100644 --- a/src/posts/user.js +++ b/src/posts/user.js @@ -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); diff --git a/src/topics.js b/src/topics.js index 87ca4dd6de..560e434fb5 100644 --- a/src/topics.js +++ b/src/topics.js @@ -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);