Browse Source
Merge pull request #346 from towards-a-new-leftypol/wordfilter-fbi
Reduce overreach of fbi.gov filter
gitIgnore1
nonmakina
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
inc/instance-config.php
|
|
@ -492,7 +492,7 @@ $config['wordfilters'][] = array("/[$n_alias][^\p{L}0-9]*[$i_alias]+[^\p{L}0-9]* |
|
|
|
$config['wordfilters'][] = array("/[$n_alias][^\p{L}0-9]*[$i_alias]+[^\p{L}0-9]*[$g_alias]+[^\p{L}0-9]*[$g_alias]+/imu", 'uygh', true); |
|
|
|
$config['wordfilters'][] = array('/ewish uyghur/i', 'ewish nigger', true); |
|
|
|
|
|
|
|
$config['wordfilters'][] = array('/discord(\.(gg|com))?/iu', 'fbi.gov', true); |
|
|
|
$config['wordfilters'][] = array('/(^|<br>|[ \/])discord(\.(gg|com))?(s?([\W]|<br>|$))/imu', '$1fbi.gov$4', true); |
|
|
|
|
|
|
|
// Prevents replacing false positives in the middle of words or links |
|
|
|
$config['wordfilters'][] = array('/(^|<br>|[ (-])iq([) ?!.]||<br>|$)(score)?/imu', '$1autism score$2', true); |
|
|
|