mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Restore accidentally deleted code
I have noticed I accidentally dropped this code during Iec237b288 (apologize!). Change-Id: Ifbd53575ddf8dd1014de19afea395d0eb537c6ee
This commit is contained in:
parent
9022148cc4
commit
5839b7c412
|
@ -676,6 +676,9 @@ class AbuseFilterHooks {
|
|||
|
||||
if ( $user && !$updater->updateRowExists( 'create abusefilter-blocker-user' ) ) {
|
||||
$user = User::newSystemUser( $username, [ 'steal' => true ] );
|
||||
$updater->insertUpdateRow( 'create abusefilter-blocker-user' );
|
||||
# Promote user so it doesn't look too crazy.
|
||||
$user->addGroup( 'sysop' );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue