From: Owen Young Date: Fri, 29 Oct 2021 04:29:45 +0000 (+0800) Subject: chore: in case display_name not exist X-Git-Url: http://these/git/%22%7Burl%7D/%22https:/image.com/%7B%60%24%7BghostArchiveUrl%7D/%7BimageSrc%7D?a=commitdiff_plain;h=0ef0ea7dfa5666296e2151676738f425f16d89c7;p=lemmy-ui.git chore: in case display_name not exist --- diff --git a/src/shared/utils.ts b/src/shared/utils.ts index d8643c3..a383b48 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}`; }