fix: Skip time filter when showing search results

When user searches, show all matching results regardless of time filter.
The time filter should only apply to normal map browsing, not explicit searches.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Your Name 2026-01-26 01:17:03 +00:00
parent 33e7213ca9
commit ce76c57902
1 changed files with 2 additions and 2 deletions

View File

@ -929,8 +929,8 @@ export function usePostsEngine({
return false; return false;
} }
// Apply time filter // Apply time filter (skip when showing search results - user wants all matches)
if (tf && tf > 0) { if (!searchResultsRef.current && tf && tf > 0) {
const postTime = effectivePostTime(p); const postTime = effectivePostTime(p);
if (!matchesTimeFilter(postTime, tf)) return false; if (!matchesTimeFilter(postTime, tf)) return false;
} }