Skip to content

Commit

Permalink
fix: Callback is the first
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed May 25, 2024
1 parent de8f74a commit 65fb681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/HookHandlers/SpamEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 65fb681

Please sign in to comment.