From: cmp Date: Tue, 13 Jun 2023 10:34:21 +0000 (-0500) Subject: Make the community title in the sidebar link to the local community. (#1161) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/%7Bthis.props.imageSrc%7D?a=commitdiff_plain;h=0d67c64af9b890d085cd86202f7c895302075f73;p=lemmy-ui.git Make the community title in the sidebar link to the local community. (#1161) * Make the community title in the sidebar link to the local community. * Ternary erudaStr for PR. --------- Co-authored-by: SleeplessOne1917 --- diff --git a/src/server/index.tsx b/src/server/index.tsx index 8d9bb25..716a936 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -330,14 +330,15 @@ async function createSsrHtml(root: string, isoData: IsoDataOptionalSite) { .then(buf => buf.toString("base64"))}` : favIconPngUrl; - const eruda = ( - <> - - - - ); - - const erudaStr = process.env["LEMMY_UI_DEBUG"] ? renderToString(eruda) : ""; + const erudaStr = + process.env["LEMMY_UI_DEBUG"] === "true" + ? renderToString( + <> + + + + ) + : ""; const helmet = Helmet.renderStatic(); diff --git a/src/shared/components/community/sidebar.tsx b/src/shared/components/community/sidebar.tsx index b55bd50..d592571 100644 --- a/src/shared/components/community/sidebar.tsx +++ b/src/shared/components/community/sidebar.tsx @@ -132,7 +132,9 @@ export class Sidebar extends Component { {this.props.showIcon && !community.removed && ( )} - {community.title} + + + {subscribed === "Subscribed" && (