mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 14:13:54 +00:00
Merge "Restore accidentally deleted code"
This commit is contained in:
commit
83d67e4a12
|
@ -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