diff options
-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; |