fix: deprecate userData.showHidden as it is functionally equivalent to userData.canEdit

isekai-main
Julian Lam 3 years ago
parent 46e5e17d0f
commit 4ac701d747

@ -78,7 +78,7 @@ helpers.getUserDataByUserSlug = async function (userslug, callerUID, query = {})
userData.isSelf = isSelf; userData.isSelf = isSelf;
userData.isFollowing = results.isFollowing; userData.isFollowing = results.isFollowing;
userData.hasPrivateChat = results.hasPrivateChat; userData.hasPrivateChat = results.hasPrivateChat;
userData.showHidden = isSelf || isAdmin || (isGlobalModerator && !results.isTargetAdmin); userData.showHidden = results.canEdit; // remove in v1.19.0
userData.groups = Array.isArray(results.groups) && results.groups.length ? results.groups[0] : []; userData.groups = Array.isArray(results.groups) && results.groups.length ? results.groups[0] : [];
userData.disableSignatures = meta.config.disableSignatures === 1; userData.disableSignatures = meta.config.disableSignatures === 1;
userData['reputation:disabled'] = meta.config['reputation:disabled'] === 1; userData['reputation:disabled'] = meta.config['reputation:disabled'] === 1;

Loading…
Cancel
Save