添加配置敏感词检查用户昵称/群组名/群备注等信息

This commit is contained in:
heavyrian2012
2025-08-05 15:32:20 +08:00
parent 59b1c3180f
commit bee03cd2f8
8 changed files with 62 additions and 2 deletions
+4
View File
@@ -448,6 +448,10 @@ push.harmony.server.address http://localhost:8085/harmony/push
## 如果开启 message.sensitive.forward.url 配置,命中敏感词的消息还会被回调到这个地址
sensitive.filter.type 2
## 敏感词是否只处理消息。如果为true,只过滤消息;如果为false,会同时过滤用户昵称、群组名和群昵称。
## 除了消息之外的信息只支持内部敏感词处理,不支持外置审核。
sensitive.only_message false
## 敏感词添加或者删除有2种方式,一种是通过Server API进行,这种方式会立即生效。另外一种方法是修改数据库,直接中数据库的t_sensitive_word表中处理
## 修改数据库的方法不会立即生效,IM服务会2个小时重新加载一次敏感词。所以如果直接修改敏感词表,需要等2个小时,或者重启才能生效。