X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fapi.php;h=e2ea87b43eb3d934d7c1d2d9bfa653fabcbe5037;hb=db64b612961c37477d0729e9ff4f882fb5df7b8d;hp=5e66639c4f64075dfd78d632dae6614e413762e6;hpb=91332cdadc20e721c22fcf22ca1773cedbde95c5;p=quix0rs-gnu-social.git diff --git a/lib/api.php b/lib/api.php index 5e66639c4f..e2ea87b43e 100644 --- a/lib/api.php +++ b/lib/api.php @@ -176,9 +176,14 @@ class ApiAction extends Action $twitter_user['utc_offset'] = $t->format('Z'); $twitter_user['time_zone'] = $timezone; - // To be supported some day, perhaps - $twitter_user['profile_background_image_url'] = ''; - $twitter_user['profile_background_tile'] = false; + $twitter_user['profile_background_image_url'] + = empty($design->backgroundimage) + ? '' : ($design->disposition & BACKGROUND_ON) + ? Design::url($design->backgroundimage) : ''; + + $twitter_user['profile_background_tile'] + = empty($design->disposition) + ? '' : ($design->disposition & BACKGROUND_TILE) ? 'true' : 'false'; $twitter_user['statuses_count'] = $profile->noticeCount();