Steps to reproduce
- Block an IP address
- On mobile, try to edit (logged out) from the IP address, with temp accounts enabled
Expected: See a block message
Actual: Progress to the editor; on saving an edit, a block error message is shown
(The same behaviour occurs if you block the temp account directly.)
Notes
At first I thought this was similar to T227167: Block notice is not shown when editing from mobile for composite blocks, in which case blockedtext-tempuser needed to be registered with ApiBase::BLOCK_CODE_MAP. However, doing this in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/999075 didn't solve the problem.
It also happens when a temporary user is partially blocked, in which case they get the same message as a registered user, so it doesn't seem to be related to the message key. (Registered users see the block message correctly.)