From cc893028e3e78ec44ad2fa180c08be573c774d10 Mon Sep 17 00:00:00 2001 From: DS Boyce <260543580+ds-boyce@users.noreply.github.com> Date: Tue, 30 Jun 2026 10:34:40 -0700 Subject: [PATCH] Always set `allTime` to `true` for search v2 (#11033) --- src/state/queries/search-posts-v2.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/state/queries/search-posts-v2.ts b/src/state/queries/search-posts-v2.ts index 506240e066..a6241808b0 100644 --- a/src/state/queries/search-posts-v2.ts +++ b/src/state/queries/search-posts-v2.ts @@ -74,14 +74,6 @@ export function useSearchPostsV2Query({ */ const {q, ...embedded} = extractSearchPostsParams(query) const builtFilters = buildSearchPostsV2Filters(embedded, filters) - /* - * v2 defaults to a recent-post window; the Latest tab keeps that, while - * Top searches the full index. But an explicit since/until date filter - * must search the full index too, otherwise the recent window would - * silently override the user's date range and return nothing for older - * dates. - */ - const hasDateFilter = !!(builtFilters.since || builtFilters.until) const res = await agent.app.bsky.feed.searchPostsV2({ ...builtFilters, query: q, @@ -92,7 +84,7 @@ export function useSearchPostsV2Query({ * the v1 'latest' label. */ sort: sort === 'latest' ? 'recent' : sort, - allTime: sort !== 'latest' || hasDateFilter, + allTime: true, }) return res.data },