fix: consider nsfw communities

This commit is contained in:
Xylight committed 2024-10-20 13:40:17 -07:00
1 parent cccfcf8aa2
commit d7173d5a47
1 file changed
+2
@@ -56,6 +56,8 @@
const tagContent = tags.map((t) => t.content.toLowerCase())
let rule: 'blur' | 'hide' | undefined
if ($userSettings.nsfwBlur && (post.post.nsfw || post.community.nsfw))
rule = 'blur'
tagContent.forEach((tag) => {
if ($userSettings.tagRules?.[tag])
rule = $userSettings.tagRules?.[tag] ?? rule