mediawiki: tune abusefilter limits. Fix #353
authorGrant Slater <git@firefishy.com>
Sat, 25 Jan 2020 14:15:03 +0000 (14:15 +0000)
committerGrant Slater <git@firefishy.com>
Sat, 25 Jan 2020 14:15:03 +0000 (14:15 +0000)
cookbooks/mediawiki/templates/default/mw-ext-AbuseFilter.inc.php.erb

index 4c9216ac0d9b9cd7a7510734671593ea841f09e6..09f5814b872dab175343bc68045a39a22de4ba3b 100644 (file)
@@ -8,3 +8,8 @@ $wgGroupPermissions['*']['abusefilter-log'] = true;
 $wgGroupPermissions['sysop']['abusefilter-private'] = true;
 $wgGroupPermissions['sysop']['abusefilter-modify-restricted'] = true;
 $wgGroupPermissions['sysop']['abusefilter-revert'] = true;
+
+# Tune AbuseFilter limits
+# https://github.com/openstreetmap/operations/issues/353
+$wgAbuseFilterEmergencyDisableThreshold['default'] = 0.30; # 30%
+$wgAbuseFilterEmergencyDisableCount['default'] = 25;