Page MenuHomePhabricator

Move block-related methods on User to the BlockManager
Open, Needs TriagePublic

Description

After the BlockManager is introduced (T219441), move over the block-related methods on User, e.g. User::getBlock, User::blockedBy, etc.

This will involve refactoring User::getBlockedStatus. User should determine whether to look for blocks against the IP address, but the method should return a block, rather than populating User properties.

There will be a lot of callers to update too.