Node.js based forum software built for the modern web
fix: observe user-specific and ACP-specific hiding rules for fullname
Julian Lamecf0e8ce22b2
diff --git a/src/user/index.js b/src/user/index.jsindex 3f409669cf..25f90c906b 100644--- a/src/user/index.js+++ b/src/user/index.js@@ -77,11 +77,13 @@ User.getUsersWithFields = async function (uids, fields, uid) {};User.getUsers = async function (uids, uid) {- return await User.getUsersWithFields(uids, [+ const userData = await User.getUsersWithFields(uids, ['uid', 'username', 'userslug', 'picture', 'status','postcount', 'reputation', 'email:confirmed', 'lastonline','flags', 'banned', 'banned:expire', 'joindate',], uid);++ return User.hidePrivateData(userData, uid);};User.getStatus = function (userData) {