Merge "Restore accidentally deleted code"

This commit is contained in:
jenkins-bot 2017-10-22 04:09:59 +00:00 committed by Gerrit Code Review
commit 83d67e4a12

View file

@ -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' );
}
}