From 53b573b28dd5b8cc58db632b227675a71faf6b54 Mon Sep 17 00:00:00 2001 From: AskIt Date: Mon, 26 Jan 2026 03:42:50 +0100 Subject: [PATCH] fix(swarm,timeline): Remove node-level NSFW cascade from post filtering - Update NSFW flag logic to only consider post and author NSFW status - Remove nodeIsNsfw from post-level isNsfw calculation - Ensure node-level NSFW filtering is applied separately at node selection - Prevents double-filtering and maintains consistent NSFW handling across timeline --- src/app/api/swarm/timeline/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/swarm/timeline/route.ts b/src/app/api/swarm/timeline/route.ts index 8f3f949..02108ff 100644 --- a/src/app/api/swarm/timeline/route.ts +++ b/src/app/api/swarm/timeline/route.ts @@ -107,7 +107,7 @@ export async function GET(request: NextRequest) { }, nodeDomain, nodeIsNsfw, - isNsfw: post.isNsfw || post.authorIsNsfw || nodeIsNsfw, // Cascade NSFW flag + isNsfw: post.isNsfw || post.authorIsNsfw, // Post-level NSFW (not node-level) likeCount: post.likesCount, repostCount: post.repostsCount, replyCount: post.repliesCount,