diff --git a/PluralKit.API/Controllers/v2/GroupControllerV2.cs b/PluralKit.API/Controllers/v2/GroupControllerV2.cs index 495f4407..25c88127 100644 --- a/PluralKit.API/Controllers/v2/GroupControllerV2.cs +++ b/PluralKit.API/Controllers/v2/GroupControllerV2.cs @@ -105,7 +105,7 @@ public class GroupControllerV2: PKControllerBase throw Errors.GroupNotFound; var system = await _repo.GetSystem(group.System); - var name = group.NameFor(LookupContext.ByNonOwner); + var name = group.DisplayName ?? group.Name; if (system.Name != null) name += $" ({system.Name})"; diff --git a/PluralKit.API/Controllers/v2/MemberControllerV2.cs b/PluralKit.API/Controllers/v2/MemberControllerV2.cs index b4ad7fb9..6a517727 100644 --- a/PluralKit.API/Controllers/v2/MemberControllerV2.cs +++ b/PluralKit.API/Controllers/v2/MemberControllerV2.cs @@ -87,7 +87,7 @@ public class MemberControllerV2: PKControllerBase throw Errors.MemberNotFound; var system = await _repo.GetSystem(member.System); - var name = member.NameFor(LookupContext.ByNonOwner); + var name = member.DisplayName ?? member.Name; if (system.Name != null) name += $" ({system.Name})";