From c858e2bc3484d58833650cf64bb2fbe2a4871cf8 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 7 Feb 2011 14:38:35 -0800 Subject: [PATCH] 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. --- lib/apiaction.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); -- 2.39.5