Browse Source
Merge pull request #254 from discomrade/patch-3
Add filter for known bot spammer
pull/40/head
towards-a-new-leftypol
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
10 additions and
0 deletions
-
inc/instance-config.php
|
|
@ -402,6 +402,16 @@ $config['wordfilters'][] = array('/trann(y|ie)?/i', 'transhumanist', true); |
|
|
|
$config['wordfilters'][] = array('/nigger/i', 'uyghur', true); |
|
|
|
$config['wordfilters'][] = array('/nigg/i', 'uygh', true); |
|
|
|
|
|
|
|
// Filter for a soyjak bot |
|
|
|
$config['filters'][] = array( |
|
|
|
'condition' => array( |
|
|
|
'!body' => '/(^[^>]|[\r\n][^>])/', // Greentexting only (does not contain non-greentext) |
|
|
|
'filename' => '/^[a-z]+\.jpg/' // Only lowercase letters, .jpg |
|
|
|
), |
|
|
|
'action' => 'reject', |
|
|
|
'message' => 'Flood detected; Post discarded.' |
|
|
|
); |
|
|
|
|
|
|
|
// Changes made via web editor by "zul_admin" @ Fri, 19 Feb 2021 15:06:33 -0800: |
|
|
|
$config['reply_limit'] = 800; |
|
|
|
|
|
|
|