feat: make tag rules customizable

This commit is contained in:
Xylight committed 2024-07-09 13:25:35 -07:00
1 parent 3e563ad1cc
commit 7877c97aeb
4 files changed
+40 -2

No files matched your search

+3
View File
@@ -91,6 +91,7 @@ interface Settings {
language: string | null
useRtl: boolean
translator: string | undefined
parseTags: boolean
tagRules: {
[key: string]: 'hide' | 'blur'
}
@@ -162,9 +163,11 @@ export const defaultSettings: Settings = {
language: env.PUBLIC_LANGUAGE ?? null,
useRtl: false,
translator: env.PUBLIC_TRANSLATOR ?? undefined,
parseTags: true,
tagRules: {
cw: 'blur',
nsfl: 'blur',
nsfw: 'blur',
},
}