mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix: name privacy while searching inconsistent with other name privacy (#681)
This commit is contained in:
parent
b898b01680
commit
ab7a693532
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue