]> Untitled Git - lemmy-ui.git/commitdiff
ui: show user's display_name instead of username
authorOwen Young <62473795+theowenyoung@users.noreply.github.com>
Fri, 29 Oct 2021 03:53:14 +0000 (11:53 +0800)
committerGitHub <noreply@github.com>
Fri, 29 Oct 2021 03:53:14 +0000 (11:53 +0800)
src/shared/utils.ts

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