From e83daa31d775ebf17a59e296d88408087f271157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Sat, 22 Nov 2025 19:28:17 +0100 Subject: [PATCH] pl-fe: fix 404-ing scheduled statuses request MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-fe/src/components/dropdown-navigation.tsx | 6 +++--- packages/pl-fe/src/components/sidebar-navigation.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/pl-fe/src/components/dropdown-navigation.tsx b/packages/pl-fe/src/components/dropdown-navigation.tsx index b991efb0d..d9521402d 100644 --- a/packages/pl-fe/src/components/dropdown-navigation.tsx +++ b/packages/pl-fe/src/components/dropdown-navigation.tsx @@ -70,14 +70,14 @@ const DropdownNavigation: React.FC = React.memo((): JSX.Element | null => { const { closeSidebar } = useUiStoreActions(); const me = useAppSelector((state) => state.me); + const features = useFeatures(); const authenticatedScheduledStatusesCountQueryOptions = useMemo(() => ({ ...scheduledStatusesCountQueryOptions, - enabled: !!me, - }), [me]); + enabled: !!me && features.scheduledStatuses, + }), [me, features]); const getOtherAccounts = useCallback(makeGetOtherAccounts(), []); - const features = useFeatures(); const { account } = useAccount(me || undefined); const otherAccounts = useAppSelector((state) => getOtherAccounts(state)); const settings = useSettings(); diff --git a/packages/pl-fe/src/components/sidebar-navigation.tsx b/packages/pl-fe/src/components/sidebar-navigation.tsx index a4e4ac894..854f109f4 100644 --- a/packages/pl-fe/src/components/sidebar-navigation.tsx +++ b/packages/pl-fe/src/components/sidebar-navigation.tsx @@ -64,8 +64,8 @@ const SidebarNavigation: React.FC = React.memo(({ shrink }) const authenticatedScheduledStatusesCountQueryOptions = useMemo(() => ({ ...scheduledStatusesCountQueryOptions, - enabled: !!account, - }), [!!account]); + enabled: !!account && features.scheduledStatuses, + }), [!!account, features]); const notificationCount = useAppSelector((state) => state.notifications.unread); const followRequestsCount = useFollowRequestsCount().data || 0;