From: Brion Vibber Date: Mon, 7 Feb 2011 22:38:35 +0000 (-0800) Subject: Issue #3025: string -> boolean for profile_background_tile entry in JSON user results... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c858e2bc3484d58833650cf64bb2fbe2a4871cf8;p=quix0rs-gnu-social.git 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. --- diff --git a/lib/apiaction.php b/lib/apiaction.php index b6e8f87b6d..5d70425720 100644 --- a/lib/apiaction.php +++ b/lib/apiaction.php @@ -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();