From 7fc3794865e99af8a6f4479db8f7c1acd89dedc1 Mon Sep 17 00:00:00 2001 From: Rudy Fraser Date: Mon, 6 Jul 2026 12:01:53 -0400 Subject: [PATCH] fix(community-posts): drop blocked and hidden posts from the community feed The slicer computed moderation decisions but never acted on them, so blocked-author threads rendered a 'User Blocked' card and 'hide for me' posts stayed as a collapsed toggle. Now a thread containing any blocked/blocking author is dropped whole (nuclear block) and items the moderation engine filters from list contexts (hidden-for-me, muted) are removed, matching the rest of the app. --- src/state/queries/community-feed.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/state/queries/community-feed.ts b/src/state/queries/community-feed.ts index 544306bf0..81feb22fd 100644 --- a/src/state/queries/community-feed.ts +++ b/src/state/queries/community-feed.ts @@ -254,7 +254,21 @@ export function useCommunityFeedSlices( isIncompleteThread: slice.isIncompleteThread, } }) - .filter(slice => slice.items.length > 0) + .filter(slice => { + // Nuclear block: drop the whole thread if any author in it is + // blocked or blocking the viewer, matching the standard app. + const hasBlock = slice.items.some(item => { + const v = item.post.author.viewer + return !!(v?.blocking || v?.blockedBy) + }) + if (hasBlock) return false + // Drop items the moderation engine filters from list contexts + // (hidden-for-me posts, muted authors, etc.). + slice.items = slice.items.filter( + item => !item.moderation.ui('contentList').filter, + ) + return slice.items.length > 0 + }) }, [feedItems, moderationOpts]) } -- knotmirror 0.0.1