Skip to content

Commit f1a839e

Browse files
committed
Don't show content if the community is nsfw also (unless the setting is to show it)
1 parent ecf7005 commit f1a839e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/PostPage.svelte

+2-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@
261261
searchText = '',
262262
loadingComments = false,
263263
// assume if they came here following a comment link, commenting on the post is less important
264-
showPost = rootCommentId === null && (!postView.post.nsfw || $nsfwImageHandling === 'SHOW'),
264+
showPost =
265+
rootCommentId === null && ((!postView.post.nsfw && !postView.community.nsfw) || $nsfwImageHandling === 'SHOW'),
265266
commentLoadFailed = false,
266267
endOfCommentsFeed = false,
267268
virtualFeedAPI: VirtualFeedAPI,

0 commit comments

Comments
 (0)