diff --git a/config/default.yaml b/config/default.yaml index 70fe45c..6d6ace0 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -258,3 +258,8 @@ pollReports: false # Whether or not new reports, received either by webapi or polling, # should be printed to our managementRoom. displayReports: true + +# How sensitive the NsfwProtection should be, which determines if an image should be redacted. A number between 0 - .99, +# with a lower number indicating greater sensitivity, possibly resulting in images being more aggressively flagged +# and redacted as NSFW +nsfwSensitivity: .6 \ No newline at end of file diff --git a/src/config.ts b/src/config.ts index fb7caa9..c601386 100644 --- a/src/config.ts +++ b/src/config.ts @@ -174,6 +174,7 @@ export interface IConfig { enabled: boolean; } } + nsfwSensitivity: number /** * Config options only set at runtime. Try to avoid using the objects @@ -248,7 +249,7 @@ const defaultConfig: IConfig = { enabled: false, }, }, - + nsfwSensitivity: .6, // Needed to make the interface happy. RUNTIME: { },