diff --git a/includes/HookHandlers/SpamEmail.php b/includes/HookHandlers/SpamEmail.php index 19913f0..0f547f4 100644 --- a/includes/HookHandlers/SpamEmail.php +++ b/includes/HookHandlers/SpamEmail.php @@ -65,8 +65,8 @@ public function onIsValidEmailAddr( $addr, &$result ) { // Check email addresses of block users if ( version_compare( '1.42', MW_VERSION, '<=' ) ) { $emails = array_filter( array_unique( array_map( - $this->databaseBlockStore->newListFromConds( [ 'bt_user IS NOT NULL' ] ), static fn( $block ) => User::newFromIdentity( $block->getBlocker() )->getEmail() + $this->databaseBlockStore->newListFromConds( [ 'bt_user IS NOT NULL' ] ), ) ) ); } else { $loadBalancer = $this->loadBalancer;