From ecf0e8ce22b2bac914a35277fce8f055c783512b Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 29 Jun 2022 16:12:32 -0400 Subject: [PATCH] fix: observe user-specific and ACP-specific hiding rules for fullname --- src/user/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/user/index.js b/src/user/index.js index 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) {