diff options
author | Evan Prodromou <evan@status.net> | 2009-11-11 00:22:29 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-11-11 00:22:29 -0500 |
commit | 093857c582a68b39e0d65523d27f25ede7b7fed6 (patch) | |
tree | f72edea0266ca3c74374a2fb82bfe74220de377f /lib/api.php | |
parent | 1455d60b06df11f7b765040a4195ded288711ae0 (diff) | |
parent | db64b612961c37477d0729e9ff4f882fb5df7b8d (diff) |
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'lib/api.php')
-rw-r--r-- | lib/api.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/api.php b/lib/api.php index 5e66639c4..e2ea87b43 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(); |