Skip to content

Node.js based forum software built for the modern web

add fullname to user return as well

psychobunny33052565759a
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);