ui: show user's display_name instead of username

This commit is contained in:
Owen Young 2021-10-29 11:53:14 +08:00 committed by GitHub
parent 7d7b1f2475
commit 96afee5b09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1468,7 +1468,7 @@ export function communitySelectName(cv: CommunityView): string {
export function personSelectName(pvs: PersonViewSafe): string { export function personSelectName(pvs: PersonViewSafe): string {
return pvs.person.local return pvs.person.local
? pvs.person.name ? pvs.person.display_name
: `${hostname(pvs.person.actor_id)}/${pvs.person.name}`; : `${hostname(pvs.person.actor_id)}/${pvs.person.name}`;
} }