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 subscribed.
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.

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