Page MenuHomePhabricator

Documentation wrong for ApiQueryUserInfo `hasmsg`
Closed, ResolvedPublic

Description

For meta=userinfo, the help text MediaWiki:Apihelp-query+userinfo-param-prop says

hasmsg
Adds a tag `message` if the current user has pending messages

but the actual property returned for hasmg is named "messages" (plural), see

https://git.wikimedia.org/blob/mediawiki%2Fcore.git/HEAD/includes%2Fapi%2FApiQueryUserInfo.php#L95

Event Timeline

Danmichaelo raised the priority of this task from to Needs Triage.
Danmichaelo updated the task description. (Show Details)
Danmichaelo added a subscriber: Danmichaelo.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 8 2015, 5:46 AM
Danmichaelo renamed this task from API documentation issue for ApiQueryUserInfo to Documentation wrong for ApiQueryUserInfo `hasmsg`.Jul 8 2015, 5:48 AM
Danmichaelo set Security to None.
Anomie moved this task from Unsorted to Non-Code on the MediaWiki-API board.Jul 8 2015, 1:54 PM
Legoktm assigned this task to Quiddity.Jul 16 2015, 2:44 AM

Change 225000 had a related patch set uploaded (by Quiddity):
API: Fixed documentation for hasmg parameter

https://gerrit.wikimedia.org/r/225000

Change 225000 merged by jenkins-bot:
API: Fixed documentation for hasmg parameter

https://gerrit.wikimedia.org/r/225000

Quiddity closed this task as Resolved.Jul 16 2015, 3:39 AM