summaryrefslogtreecommitdiff
path: root/actions/twittersettings.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2008-12-11 05:01:06 -0500
committerZach Copley <zach@controlyourself.ca>2008-12-11 05:01:06 -0500
commita5d0b0ff813ff15ce15e6110f1f3c638b60b46d5 (patch)
treedc571ba871aebf619f897b44f163d4d7198df14b /actions/twittersettings.php
parent6d464ec91b06a66cfc989084b8af8acb1317e23d (diff)
Twitter bridge: update to handle Twitter API changes to verify_credentials method
darcs-hash:20081211100106-7b5ce-c8dfd1f3ded2b9f1258d11457a1c2669a4858185.gz
Diffstat (limited to 'actions/twittersettings.php')
-rw-r--r--actions/twittersettings.php10
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;