Issue #3025: string -> boolean for profile_background_tile entry in JSON user results from Twitter-compat API

This entry was using the strings 'true' and 'false' instead of literal booleans, which could confuse clients expecting literal booleans as in other places and on Twitter in this place.
This commit is contained in:
Brion Vibber 2011-02-07 14:38:35 -08:00
parent 1c3fabbc27
commit c858e2bc34
1 changed files with 1 additions and 2 deletions

View File

@ -263,8 +263,7 @@ class ApiAction extends Action
? Design::url($design->backgroundimage) : '';
$twitter_user['profile_background_tile']
= empty($design->disposition)
? '' : ($design->disposition & BACKGROUND_TILE) ? 'true' : 'false';
= (bool)($design->disposition & BACKGROUND_TILE);
$twitter_user['statuses_count'] = $profile->noticeCount();