diff options
author | Zach Copley <zach@controlyourself.ca> | 2008-12-11 05:01:06 -0500 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2008-12-11 05:01:06 -0500 |
commit | a5d0b0ff813ff15ce15e6110f1f3c638b60b46d5 (patch) | |
tree | dc571ba871aebf619f897b44f163d4d7198df14b /actions | |
parent | 6d464ec91b06a66cfc989084b8af8acb1317e23d (diff) |
Twitter bridge: update to handle Twitter API changes to verify_credentials method
darcs-hash:20081211100106-7b5ce-c8dfd1f3ded2b9f1258d11457a1c2669a4858185.gz
Diffstat (limited to 'actions')
-rw-r--r-- | actions/twittersettings.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/actions/twittersettings.php b/actions/twittersettings.php index 523742361..ae3aff877 100644 --- a/actions/twittersettings.php +++ b/actions/twittersettings.php @@ -338,14 +338,16 @@ class TwittersettingsAction extends SettingsAction { return false; } - $creds = json_decode($data); + $user = json_decode($data); - if (!$creds) { + if (!$user) { return false; } - if ($creds->authorized == 1) { - return true; + $twitter_id = $user->status->id; + + if ($twitter_id) { + return $twitter_id; } return false; |