Fixed User API data returns boolean for "user_title" instead of string

Painbaker

Well-known member
Affected version
2.2.13
\XF\Entity\User::setupApiResultData:


PHP:
$result->user_title = $this->custom_title !== '' ?: $this->app()->templater()->getDefaultUserTitleForUser($this);


Result:

JSON:
{
  "user": {
    ...
    "user_title": true,
    ...
   }
}
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.14).

Change log:
Fix value of custom user titles in API responses
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom