From 0ef0ea7dfa5666296e2151676738f425f16d89c7 Mon Sep 17 00:00:00 2001 From: Owen Young Date: Fri, 29 Oct 2021 12:29:45 +0800 Subject: [PATCH] chore: in case display_name not exist --- src/shared/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/utils.ts b/src/shared/utils.ts index d8643c3f..a383b489 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -1468,7 +1468,7 @@ export function communitySelectName(cv: CommunityView): string { export function personSelectName(pvs: PersonViewSafe): string { return pvs.person.local - ? pvs.person.display_name + ? pvs.person.display_name || pvs.person.name : `${hostname(pvs.person.actor_id)}/${pvs.person.name}`; }