diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-08-10 07:00:59 +0000 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-08-10 07:00:59 +0000 |
commit | 27548c690350bdf0376d846a5e8e86477359297d (patch) | |
tree | 2f6d617d3256a70e8612456fcbcda346e505c476 /lib/twitter.php | |
parent | fa8433308f5ba1209ec490d6c0835d28da18eacb (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 'lib/twitter.php')
-rw-r--r-- | lib/twitter.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/twitter.php b/lib/twitter.php index 4e2f67c66..280cdb0a3 100644 --- a/lib/twitter.php +++ b/lib/twitter.php @@ -160,7 +160,9 @@ function broadcast_twitter($notice) // XXX: Hack to get around PHP cURL's use of @ being a a meta character $statustxt = preg_replace('/^@/', ' @', $notice->content); - $client = new TwitterOAuthClient($flink->token, $flink->credentials); + $token = TwitterOAuthClient::unpackToken($flink->credentials); + + $client = new TwitterOAuthClient($token->key, $token->secret); $status = null; |