Page MenuHomePhabricator

Parse the links in the block reason on IP User block notice on mobile
Closed, ResolvedPublic

Description

T193754 converted the block notice for IP users on mobile to use the block drawer, but links in the block reason were not parsed in the drawer since a parsed block reason was not available in the API. After T194530 is complete, links in the block reason should be parsed in the drawer.

Event Timeline

dbarratt renamed this task from Add the block reason to the IP User block notice on mobile to Parse the links in the block reason on IP User block notice on mobile.May 12 2018, 1:03 PM
dbarratt updated the task description. (Show Details)
CommunityTechBot renamed this task from p2caaaaaaa to Parse the links in the block reason on IP User block notice on mobile.Jul 2 2018, 4:16 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.
matmarex claimed this task.
matmarex added a project: MobileFrontend.
matmarex subscribed.

After https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MobileFrontend/+/444779, the block reasons are parsed using mw.jqueryMsg. It supports a small subset of wikitext, but conveniently it includes links. If there is any formatting that can't be parsed, it falls back to showing the wikitext (in particular, it doesn't parse templates, see T189717).