From f17ffd8c88ad586ac941f35ea2c08cf3fc82fe7c Mon Sep 17 00:00:00 2001 From: AskIt Date: Mon, 26 Jan 2026 03:53:25 +0100 Subject: [PATCH] fix(swarm,timeline): Include node NSFW status in post filtering - Add node NSFW status check to post filtering logic - Filter posts where either the post itself or its parent node is marked NSFW - Ensure comprehensive NSFW content filtering across both post and node levels - Prevents NSFW content from NSFW nodes from appearing in filtered timelines --- src/lib/swarm/timeline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/swarm/timeline.ts b/src/lib/swarm/timeline.ts index d3f2d9a..e13b2c1 100644 --- a/src/lib/swarm/timeline.ts +++ b/src/lib/swarm/timeline.ts @@ -181,7 +181,7 @@ export async function fetchSwarmTimeline( // A post is NSFW if it's explicitly marked OR comes from an NSFW node const filteredPosts = includeNsfw ? result.posts - : result.posts.filter(p => !p.isNsfw); + : result.posts.filter(p => !p.isNsfw && !p.nodeIsNsfw); allPosts.push(...filteredPosts); }