From: Dessalines Date: Sat, 23 Jan 2021 22:23:49 +0000 (-0500) Subject: Use display titles for community links. Fixes #98 X-Git-Url: http://these/git/%7B%60https:/readmes/static/gitweb.css?a=commitdiff_plain;h=f2999df3004b9c9d7f08e7e9fb0b40cc0102cadc;p=lemmy-ui.git Use display titles for community links. Fixes #98 --- diff --git a/src/shared/components/community-link.tsx b/src/shared/components/community-link.tsx index b8f3bc0..48dd134 100644 --- a/src/shared/components/community-link.tsx +++ b/src/shared/components/community-link.tsx @@ -20,20 +20,22 @@ export class CommunityLink extends Component { render() { let community = this.props.community; - let name_: string, link: string; + let name_: string, title: string, link: string; let local = community.local == null ? true : community.local; if (local) { name_ = community.name; + title = community.title; link = `/c/${community.name}`; } else { name_ = `${community.name}@${hostname(community.actor_id)}`; + title = `${community.title}@${hostname(community.actor_id)}`; link = !this.props.realLink ? `/community/${community.id}` : community.actor_id; } let apubName = `!${name_}`; - let displayName = this.props.useApubName ? apubName : name_; + let displayName = this.props.useApubName ? apubName : title; return (