From bfb43aae77dd4bd38e41a336bec02d87d7bb4627 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 29 Oct 2021 14:55:14 -0400 Subject: [PATCH] Use community title and user display name for dropdown. --- src/shared/utils.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/shared/utils.ts b/src/shared/utils.ts index 1167295..92b42fb 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -1465,13 +1465,12 @@ export const choicesConfig = { export function communitySelectName(cv: CommunityView): string { return cv.community.local ? cv.community.title - : `${hostname(cv.community.actor_id)}/${cv.community.name}`; + : `${hostname(cv.community.actor_id)}/${cv.community.title}`; } export function personSelectName(pvs: PersonViewSafe): string { - return pvs.person.local - ? pvs.person.display_name || pvs.person.name - : `${hostname(pvs.person.actor_id)}/${pvs.person.name}`; + let pName = pvs.person.display_name || pvs.person.name; + return pvs.person.local ? pName : `${hostname(pvs.person.actor_id)}/${pName}`; } export function initializeSite(site: GetSiteResponse) { -- 2.44.1