feat: add emailHidden

This commit is contained in:
Barış Soner Uşaklı
2022-12-20 17:54:14 -05:00
parent 88fc073485
commit 57bfb37c55
2 changed files with 3 additions and 1 deletions

View File

@@ -156,5 +156,6 @@
"disabled": "Disabled",
"select": "Select",
"user-search-prompt": "Type something here to find users..."
"user-search-prompt": "Type something here to find users...",
"hidden": "Hidden"
}

View File

@@ -42,6 +42,7 @@ helpers.getUserDataByUserSlug = async function (userslug, callerUID, query = {})
);
userData = await user.hidePrivateData(userData, callerUID);
userData.emailHidden = !userSettings.showemail;
userData.emailClass = userSettings.showemail ? 'hide' : '';
// If email unconfirmed, hide from result set