fix: consider nsfw communities
This commit is contained in:
1 parent
cccfcf8aa2
commit
d7173d5a47
1 file changed
+2
@@ -56,6 +56,8 @@
|
|||||||
const tagContent = tags.map((t) => t.content.toLowerCase())
|
const tagContent = tags.map((t) => t.content.toLowerCase())
|
||||||
|
|
||||||
let rule: 'blur' | 'hide' | undefined
|
let rule: 'blur' | 'hide' | undefined
|
||||||
|
if ($userSettings.nsfwBlur && (post.post.nsfw || post.community.nsfw))
|
||||||
|
rule = 'blur'
|
||||||
tagContent.forEach((tag) => {
|
tagContent.forEach((tag) => {
|
||||||
if ($userSettings.tagRules?.[tag])
|
if ($userSettings.tagRules?.[tag])
|
||||||
rule = $userSettings.tagRules?.[tag] ?? rule
|
rule = $userSettings.tagRules?.[tag] ?? rule
|
||||||
|
|||||||
Reference in new issue
Block a user