Fix recent filter and ship pending UI tweaks

This commit is contained in:
Your Name 2025-12-30 18:11:28 -05:00
parent 5cc21194a0
commit 794b083356
1 changed files with 2 additions and 2 deletions

View File

@ -858,8 +858,8 @@ export function usePostsEngine({
if (pc !== catCode) return false; if (pc !== catCode) return false;
} }
if (!matchesSubFilter(p, subFilter)) return false; if (!matchesSubFilter(p, subFilter)) return false;
const postTf = (p?._swTimeFilter || "").toString(); const skipTimeFilter = lastFetchRef.current?.timeFilter === tf;
if (postTf !== tf && !matchesTimeFilter(effectivePostTime(p), tf)) return false; if (!skipTimeFilter && !matchesTimeFilter(effectivePostTime(p), tf)) return false;
if (!searchResultsRef.current && !matchesSearch(p, searchQuery)) return false; if (!searchResultsRef.current && !matchesSearch(p, searchQuery)) return false;
return true; return true;
}); });