From 0e00552c9094e6400a84ca208875b9406fd6fc31 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 24 Sep 2024 14:13:35 -0500 Subject: [PATCH] Exclude Discover --- src/state/queries/post-feed.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/state/queries/post-feed.ts b/src/state/queries/post-feed.ts index 8374b3da7e..4e5722ac2c 100644 --- a/src/state/queries/post-feed.ts +++ b/src/state/queries/post-feed.ts @@ -138,7 +138,9 @@ export function usePostFeedQuery( const isDiscover = feedDesc.includes(DISCOVER_FEED_URI) const [pageSize] = React.useState(() => { - return gate('post_feed_lang_window') ? 100 : PAGE_SIZE + // add exclusions here + const isExcluded = isDiscover + return !isExcluded && gate('post_feed_lang_window') ? 100 : PAGE_SIZE }) // Make sure this doesn't invalidate unless really needed.