chore: in case display_name not exist
This commit is contained in:
parent
96afee5b09
commit
0ef0ea7dfa
1 changed files with 1 additions and 1 deletions
|
@ -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}`;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue