fix(dashboard): use display name for member/group embeds

This commit is contained in:
spiral 2022-06-05 14:15:26 -04:00
parent 989a8b4453
commit f90ffdaff2
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E
2 changed files with 2 additions and 2 deletions

View File

@ -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})";

View File

@ -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})";