mirror of
https://github.com/wassname/talk.git
synced 2026-07-05 17:38:37 +08:00
Merge branch 'master' into fix-routes-mount-path
This commit is contained in:
@@ -153,7 +153,7 @@ const CONFIG = {
|
||||
DISABLE_AUTOFLAG_SUSPECT_WORDS: process.env.TALK_DISABLE_AUTOFLAG_SUSPECT_WORDS === 'TRUE',
|
||||
|
||||
// TRUST_THRESHOLDS defines the thresholds used for automoderation.
|
||||
TRUST_THRESHOLDS: process.env.TRUST_THRESHOLDS || 'comment:-1,-1;flag:-1,-1'
|
||||
TRUST_THRESHOLDS: process.env.TRUST_THRESHOLDS || 'comment:2,-1;flag:2,-1'
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@@ -177,7 +177,7 @@ Trust can auto-moderate comments based on user history. By specifying this
|
||||
option, the behavior can be changed to offer different results.
|
||||
|
||||
- `TRUST_THRESHOLDS` (_optional_) - configure the reliability thresholds for
|
||||
flagging and commenting. (Default `comment:-1,-1;flag:-1,-1`)
|
||||
flagging and commenting. (Default `comment:2,-1;flag:2,-1`)
|
||||
|
||||
The form of the environment variable:
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ const {
|
||||
*
|
||||
* The default used is:
|
||||
*
|
||||
* comment:-1,-1;flag:-1,-1
|
||||
* comment:2,-2;flag:2,-2
|
||||
*/
|
||||
const parseThresholds = (thresholds) => thresholds
|
||||
.split(';')
|
||||
|
||||
Reference in New Issue
Block a user