Use updated CheckUser Hooks class

Depends-On: I3f66b660f9d59c0e88b182c9b06ee8cec994348e
Change-Id: I79e12fcd328bda203013a438b7f9a472b351dd48
This commit is contained in:
Reedy 2021-02-11 19:29:23 +00:00
parent c35a9a51b0
commit c2e57657f4
2 changed files with 4 additions and 5 deletions

View file

@ -10,7 +10,7 @@
"type": "antispam",
"license-name": "GPL-2.0-or-later",
"requires": {
"MediaWiki": ">= 1.35.0"
"MediaWiki": ">= 1.36.0"
},
"GroupPermissions": {
"user": {

View file

@ -1,5 +1,6 @@
<?php
use MediaWiki\CheckUser\Hooks;
use MediaWiki\MediaWikiServices;
use Wikimedia\Rdbms\Database;
@ -242,11 +243,9 @@ class SpamBlacklist extends BaseBlacklist {
if ( $log->isRestricted() ) {
// Make sure checkusers can see this action if the log is restricted
// (which is the default)
if ( ExtensionRegistry::getInstance()->isLoaded( 'CheckUser' )
&& class_exists( CheckUserHooks::class )
) {
if ( ExtensionRegistry::getInstance()->isLoaded( 'CheckUser' ) ) {
$rc = $logEntry->getRecentChange( $logid );
CheckUserHooks::updateCheckUserData( $rc );
Hooks::updateCheckUserData( $rc );
}
} else {
// If the log is unrestricted, publish normally to RC,