Merge remote-tracking branch 'origin/develop' into activitypub

This commit is contained in:
Julian Lam
2024-12-05 11:51:49 -05:00
2 changed files with 4 additions and 3 deletions

View File

@@ -172,9 +172,10 @@ helpers.getCustomUserFields = async function (callerUID, userData) {
]);
const fields = allFields.filter((field) => {
const visibilityCheck = isAdmin || isModOfAny || isSelf || field.visibility === 'all' ||
const visibility = field.visibility || 'all';
const visibilityCheck = isAdmin || isModOfAny || isSelf || visibility === 'all' ||
(
field.visibility === 'loggedin' &&
visibility === 'loggedin' &&
String(callerUID) !== '0' &&
String(callerUID) !== '-1'
);