mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Move most references to PKMember.Name to go through helper extepsions for privacy
This commit is contained in:
parent
761270f0c3
commit
56eae82b0a
22 changed files with 97 additions and 62 deletions
|
|
@ -44,7 +44,7 @@ namespace PluralKit.API
|
|||
{
|
||||
var o = new JObject();
|
||||
o.Add("id", member.Hid);
|
||||
o.Add("name", member.NamePrivacy.CanAccess(ctx) ? member.Name : member.DisplayName ?? member.Name);
|
||||
o.Add("name", member.NameFor(ctx));
|
||||
// o.Add("color", member.ColorPrivacy.CanAccess(ctx) ? member.Color : null);
|
||||
o.Add("color", member.Color);
|
||||
o.Add("display_name", member.NamePrivacy.CanAccess(ctx) ? member.DisplayName : null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue