From 86f2a6bf9c46acffad372c4dd2f37a602890838c Mon Sep 17 00:00:00 2001 From: Rafael Bradley Date: Thu, 28 Aug 2025 02:58:19 -0300 Subject: [PATCH] Make sensitive topics only get censored --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/groups/calls/moderation.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 307ab79..67fc8e0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1996,7 +1996,7 @@ checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3" [[package]] name = "payphone" -version = "4.4.4" +version = "4.4.5" dependencies = [ "anyhow", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index f0171a3..5ad661e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "payphone" -version = "4.4.4" +version = "4.4.5" edition = "2024" default-run = "payphone" diff --git a/src/groups/calls/moderation.rs b/src/groups/calls/moderation.rs index 78546a7..db25e84 100644 --- a/src/groups/calls/moderation.rs +++ b/src/groups/calls/moderation.rs @@ -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, Vec) {