mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
add config option to set nsfwProtection sensitivity
This commit is contained in:
parent
147f595ec1
commit
0ee021b8eb
@ -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
|
@ -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: {
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user