]> Untitled Git - lemmy-ui.git/commitdiff
feat: post form community use title instead of name
authorOwen Young <theowenyoung@gmail.com>
Thu, 28 Oct 2021 21:39:41 +0000 (05:39 +0800)
committerOwen Young <theowenyoung@gmail.com>
Thu, 28 Oct 2021 21:39:41 +0000 (05:39 +0800)
src/shared/utils.ts

index 594c5bc935f8feb90d5194998996da3224a6fe7f..d1392f0eecd37ee3a8df6b150e0f566dff202fff 100644 (file)
@@ -1462,7 +1462,7 @@ export const choicesConfig = {
 
 export function communitySelectName(cv: CommunityView): string {
   return cv.community.local
-    ? cv.community.name
+    ? cv.community.title
     : `${hostname(cv.community.actor_id)}/${cv.community.name}`;
 }