summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Moore <dan@moore.cx>2009-04-18 15:42:44 -0400
committerDan Moore <dan@moore.cx>2009-04-18 15:42:44 -0400
commitb764c3be78aef4305b75b14d7f3e8c9f1c552f9e (patch)
tree0015152e8e6448ada451baac228773628a920f36
parent90fb7be99a74689de0d0e2409230d8bd515ac5c3 (diff)
This should change the JSON representation of the booleans 'following' and 'notifications', but unlike the previous change, I was unable to test this.
-rw-r--r--actions/twitapiusers.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/actions/twitapiusers.php b/actions/twitapiusers.php
index 41d0d955b..92d67454c 100644
--- a/actions/twitapiusers.php
+++ b/actions/twitapiusers.php
@@ -103,22 +103,14 @@ class TwitapiusersAction extends TwitterapiAction
if (isset($apidata['user'])) {
- if ($apidata['user']->isSubscribed($profile)) {
- $twitter_user['following'] = 'true';
- } else {
- $twitter_user['following'] = 'false';
- }
+ $twitter_user['following'] = $apidata['user']->isSubscribed($profile);
// Notifications on?
$sub = Subscription::pkeyGet(array('subscriber' =>
$apidata['user']->id, 'subscribed' => $profile->id));
if ($sub) {
- if ($sub->jabber || $sub->sms) {
- $twitter_user['notifications'] = 'true';
- } else {
- $twitter_user['notifications'] = 'false';
- }
+ $twitter_user['notifications'] = ($sub->jabber || $sub->sms);
}
}