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
This commit is contained in:
AskIt
2026-01-26 03:42:50 +01:00
parent a6019844b4
commit 53b573b28d
+1 -1
View File
@@ -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,