Make sensitive topics only get censored

This commit is contained in:
2025-08-28 02:58:19 -03:00
parent d1669003cf
commit 86f2a6bf9c
3 changed files with 3 additions and 3 deletions
Generated
+1 -1
View File
@@ -1996,7 +1996,7 @@ checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3"
[[package]] [[package]]
name = "payphone" name = "payphone"
version = "4.4.4" version = "4.4.5"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"async-trait", "async-trait",
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "payphone" name = "payphone"
version = "4.4.4" version = "4.4.5"
edition = "2024" edition = "2024"
default-run = "payphone" default-run = "payphone"
+1 -1
View File
@@ -653,7 +653,7 @@ impl Rule for SensitiveTopicsAndTriggeringContentRule {
} }
fn action(&self) -> &'static Action { fn action(&self) -> &'static Action {
&Action::BlockAndPenalty &Action::SoftCensorAndWarn
} }
fn detect(&self, _original: &str, normalized: &str) -> (Vec<String>, Vec<String>) { fn detect(&self, _original: &str, normalized: &str) -> (Vec<String>, Vec<String>) {