From d3f1a010e561e3de9a1d99ec104f5b286aaffbda Mon Sep 17 00:00:00 2001
From: Yamagishi Kazutoshi <ykzts@desire.sh>
Date: Mon, 10 Oct 2022 02:26:14 +0900
Subject: [PATCH] Fix fedi/local timeline nav link always hide (#19329)

---
 .../mastodon/features/ui/components/navigation_panel.js         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/javascript/mastodon/features/ui/components/navigation_panel.js b/app/javascript/mastodon/features/ui/components/navigation_panel.js
index aa917c1ca5..4dadf294d2 100644
--- a/app/javascript/mastodon/features/ui/components/navigation_panel.js
+++ b/app/javascript/mastodon/features/ui/components/navigation_panel.js
@@ -58,7 +58,7 @@ class NavigationPanel extends React.Component {
         )}
 
         <ColumnLink transparent to='/explore' icon='hashtag' text={intl.formatMessage(messages.explore)} />
-        {signedIn || timelinePreview && (
+        {(signedIn || timelinePreview) && (
           <>
             <ColumnLink transparent to='/public/local' icon='users' text={intl.formatMessage(messages.local)} />
             <ColumnLink transparent exact to='/public' icon='globe' text={intl.formatMessage(messages.federated)} />
-- 
GitLab