* Make the community title in the sidebar link to the local community.
* Ternary erudaStr for PR.
---------
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
.then(buf => buf.toString("base64"))}`
: favIconPngUrl;
- const eruda = (
- <>
- <script src="//cdn.jsdelivr.net/npm/eruda"></script>
- <script>eruda.init();</script>
- </>
- );
-
- const erudaStr = process.env["LEMMY_UI_DEBUG"] ? renderToString(eruda) : "";
+ const erudaStr =
+ process.env["LEMMY_UI_DEBUG"] === "true"
+ ? renderToString(
+ <>
+ <script src="//cdn.jsdelivr.net/npm/eruda"></script>
+ <script>eruda.init();</script>
+ </>
+ )
+ : "";
const helmet = Helmet.renderStatic();
{this.props.showIcon && !community.removed && (
<BannerIconHeader icon={community.icon} banner={community.banner} />
)}
- <span className="mr-2">{community.title}</span>
+ <span className="mr-2">
+ <CommunityLink community={community} hideAvatar />
+ </span>
{subscribed === "Subscribed" && (
<button
className="btn btn-secondary btn-sm mr-2"