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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user