mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Merge "Send AbuseFilter logs to CheckUser on PRESEND"
This commit is contained in:
commit
901d8812e2
|
@ -248,7 +248,12 @@ class AbuseLogger {
|
|||
$entry->setPerformer( new UserIdentityValue( 0, $this->requestIP ) );
|
||||
}
|
||||
$rc = $entry->getRecentChange();
|
||||
Hooks::updateCheckUserData( $rc );
|
||||
// We need to send the entries on PRESEND to ensure that the user definitely exists.
|
||||
// A temporary account being created through an edit will not exist until after AbuseFilter
|
||||
// processes the edit and attempts to log to CheckUser.
|
||||
DeferredUpdates::addCallableUpdate( static function () use ( $rc ) {
|
||||
Hooks::updateCheckUserData( $rc );
|
||||
}, DeferredUpdates::PRESEND );
|
||||
}
|
||||
|
||||
if ( $this->options->get( 'AbuseFilterNotifications' ) !== false ) {
|
||||
|
|
Loading…
Reference in a new issue