From c1dcc91f76d0adc8a09a8b1b59d109e80b160b82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 10 Oct 2022 00:32:09 +0200 Subject: [PATCH] Only show WhoToFollowPanel if authenticated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/pages/default_page.tsx | 2 +- app/soapbox/pages/home_page.tsx | 2 +- app/soapbox/pages/profile_page.tsx | 2 +- app/soapbox/pages/status_page.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/soapbox/pages/default_page.tsx b/app/soapbox/pages/default_page.tsx index c013eb63d..9e918cc4e 100644 --- a/app/soapbox/pages/default_page.tsx +++ b/app/soapbox/pages/default_page.tsx @@ -39,7 +39,7 @@ const DefaultPage: React.FC = ({ children }) => { {Component => } )} - {features.suggestions && ( + {me && features.suggestions && ( {Component => } diff --git a/app/soapbox/pages/home_page.tsx b/app/soapbox/pages/home_page.tsx index dc8c2c9f4..de9375ace 100644 --- a/app/soapbox/pages/home_page.tsx +++ b/app/soapbox/pages/home_page.tsx @@ -103,7 +103,7 @@ const HomePage: React.FC = ({ children }) => { {Component => } )} - {features.suggestions && ( + {me && features.suggestions && ( {Component => } diff --git a/app/soapbox/pages/profile_page.tsx b/app/soapbox/pages/profile_page.tsx index 9f57e23ab..1cc5f64fe 100644 --- a/app/soapbox/pages/profile_page.tsx +++ b/app/soapbox/pages/profile_page.tsx @@ -137,7 +137,7 @@ const ProfilePage: React.FC = ({ params, children }) => { {Component => } - ) : features.suggestions && ( + ) : me && features.suggestions && ( {Component => } diff --git a/app/soapbox/pages/status_page.tsx b/app/soapbox/pages/status_page.tsx index 414df6783..a296b8fe0 100644 --- a/app/soapbox/pages/status_page.tsx +++ b/app/soapbox/pages/status_page.tsx @@ -43,7 +43,7 @@ const StatusPage: React.FC = ({ children }) => { {Component => } )} - {features.suggestions && ( + {me && features.suggestions && ( {Component => }