chore: in case display_name not exist

This commit is contained in:
Owen Young 2021-10-29 12:29:45 +08:00
parent 96afee5b09
commit 0ef0ea7dfa

View file

@ -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}`;
}