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:
parent
33e7213ca9
commit
ce76c57902
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue