Make sensitive topics only get censored
This commit is contained in:
Generated
+1
-1
@@ -1996,7 +1996,7 @@ checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3"
|
||||
|
||||
[[package]]
|
||||
name = "payphone"
|
||||
version = "4.4.4"
|
||||
version = "4.4.5"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"async-trait",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "payphone"
|
||||
version = "4.4.4"
|
||||
version = "4.4.5"
|
||||
edition = "2024"
|
||||
default-run = "payphone"
|
||||
|
||||
|
||||
@@ -653,7 +653,7 @@ impl Rule for SensitiveTopicsAndTriggeringContentRule {
|
||||
}
|
||||
|
||||
fn action(&self) -> &'static Action {
|
||||
&Action::BlockAndPenalty
|
||||
&Action::SoftCensorAndWarn
|
||||
}
|
||||
|
||||
fn detect(&self, _original: &str, normalized: &str) -> (Vec<String>, Vec<String>) {
|
||||
|
||||
Reference in New Issue
Block a user