summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-08-10 07:00:59 +0000
committerZach Copley <zach@controlyourself.ca>2009-08-10 07:00:59 +0000
commit27548c690350bdf0376d846a5e8e86477359297d (patch)
tree2f6d617d3256a70e8612456fcbcda346e505c476 /actions
parentfa8433308f5ba1209ec490d6c0835d28da18eacb (diff)
I forgot that we don't do database upgrades for point releases. So I've
changed Twitter OAuth to store token and token secret in the same field in foreign_link (credentials). This should be changed in 0.9.
Diffstat (limited to 'actions')
-rw-r--r--actions/twitterauthorization.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/actions/twitterauthorization.php b/actions/twitterauthorization.php
index c40f27164..b04f35327 100644
--- a/actions/twitterauthorization.php
+++ b/actions/twitterauthorization.php
@@ -113,7 +113,7 @@ class TwitterauthorizationAction extends Action
// Get a new request token and authorize it
$client = new TwitterOAuthClient();
- $req_tok =
+ $req_tok =
$client->getRequestToken(TwitterOAuthClient::$requestTokenURL);
// Sock the request token away in the session temporarily
@@ -198,8 +198,10 @@ class TwitterauthorizationAction extends Action
$flink->user_id = $user->id;
$flink->foreign_id = $twitter_user->id;
$flink->service = TWITTER_SERVICE;
- $flink->token = $access_token->key;
- $flink->credentials = $access_token->secret;
+
+ $creds = TwitterOAuthClient::packToken($access_token);
+
+ $flink->credentials = $creds;
$flink->created = common_sql_now();
// Defaults: noticesync on, everything else off