Always apply time window on visible posts

This commit is contained in:
Your Name 2025-12-30 19:57:10 -05:00
parent bd512ba04d
commit e9195b3f49
1 changed files with 1 additions and 2 deletions

View File

@ -861,8 +861,7 @@ export function usePostsEngine({
if (pc !== catCode) return false;
}
if (!matchesSubFilter(p, subFilter)) return false;
const skipTimeFilter = lastFetchRef.current?.timeHours === tf;
if (!skipTimeFilter && !matchesTimeFilter(effectivePostTime(p), tf)) return false;
if (!matchesTimeFilter(effectivePostTime(p), tf)) return false;
if (!searchResultsRef.current && !matchesSearch(p, searchQuery)) return false;
return true;
});