Page MenuHomePhabricator

store blocker name in User object
Closed, DeclinedPublic

Description

The user object does not store the name of the blocker (database field ipb_user_name).

So User::whoIs( $wgUser->blockedBy() ); is called, but that is a unnecessary select, because you can get the name from the ipblocks table instead.

  • ApiQueryUserInfo::getCurrentUserInfo
  • Title::checkUserBlock
  • OutputPage::blockedPage

Thanks.


Version: 1.18.x
Severity: enhancement

Details

Reference
bz27689

Related Objects

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:33 PM
bzimport set Reference to bz27689.
bzimport added a subscriber: Unknown Object (MLST).