Bump MW requirement to 1.37

The master version of the extension is only meant to support the most
recent version of MediaWiki.

Change-Id: I33612e69fc37bf5eb70133c8f0e95199dd7fcb65
This commit is contained in:
Daimona Eaytoy 2021-06-26 14:18:43 +02:00
parent 351f9f02bc
commit e56dcc7cb1
2 changed files with 1 additions and 3 deletions

View file

@ -12,7 +12,7 @@
"license-name": "GPL-2.0-or-later",
"type": "antispam",
"requires": {
"MediaWiki": ">= 1.36.0"
"MediaWiki": ">= 1.37.0"
},
"AvailableRights": [
"abusefilter-modify",

View file

@ -49,8 +49,6 @@ class AbuseFilterHooks {
// Produce a useful error message for API edits
$filterResultApi = self::getApiStatus( $filterResult );
$status->merge( $filterResultApi );
// @todo Remove this line after this extension do not support mediawiki version 1.36 and before
$status->value = \EditPage::AS_HOOK_ERROR_EXPECTED;
}
MediaWikiServices::getInstance()->getStatsdDataFactory()
->timing( 'timing.editAbuseFilter', microtime( true ) - $startTime );