From fa39f95797e097fbb36847d20ae698fd3291bc31 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Thu, 1 Oct 2026 11:53:16 +0000 Subject: [PATCH] Redesign: Prevent alerts when logged out (#40794) --- .../mastodon/features/navigation_panel/redesign/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/features/navigation_panel/redesign/index.tsx b/app/javascript/mastodon/features/navigation_panel/redesign/index.tsx index 2775133cd12..00a1a132bdc 100644 --- a/app/javascript/mastodon/features/navigation_panel/redesign/index.tsx +++ b/app/javascript/mastodon/features/navigation_panel/redesign/index.tsx @@ -114,9 +114,10 @@ export function useNotificationsCount() { const unreadNotificationsCount = useAppSelector( selectUnreadNotificationGroupsCount, ); - const followRequestsCount = useFollowRequestsCount(); + const { signedIn } = useIdentity(); + const followRequestsCount = useFollowRequestsCount({ fetch: signedIn }); - const { unreadAnnouncementCount } = useHasAnnouncements(); + const { unreadAnnouncementCount } = useHasAnnouncements({ fetch: signedIn }); return ( unreadNotificationsCount + followRequestsCount + unreadAnnouncementCount