From 0d67c64af9b890d085cd86202f7c895302075f73 Mon Sep 17 00:00:00 2001 From: cmp Date: Tue, 13 Jun 2023 05:34:21 -0500 Subject: [PATCH] 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 --- src/server/index.tsx | 17 +++++++++-------- src/shared/components/community/sidebar.tsx | 4 +++- 2 files changed, 12 insertions(+), 9 deletions(-) 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" && (