fix: name privacy while searching inconsistent with other name privacy (#681)

This commit is contained in:
Petal Ladenson 2024-10-07 00:16:39 -06:00 committed by GitHub
parent b898b01680
commit ab7a693532
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,7 +37,7 @@ select members.*,
-- Privacy '1' = public; just return name as normal
when members.name_privacy = 1 then members.name
-- Any other privacy (rn just '2'), return display name
else members.display_name
else coalesce(members.display_name, members.name)
end as public_name
from members;
@ -70,6 +70,6 @@ select groups.*,
-- Privacy '1' = public; just return name as normal
when groups.name_privacy = 1 then groups.name
-- Any other privacy (rn just '2'), return display name
else groups.display_name
else coalesce(groups.display_name, groups.name)
end as public_name
from groups;
from groups;