summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-06 02:37:21 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-06 02:37:21 -0400
commit15989d6c35be91dd8f5e355170133b83020084c4 (patch)
treed903ac52414f64d5a5ad2f8aa4310ee9ef457845
parent9136d18327f2075797aecff1e3ccec0c3e11e928 (diff)
store URL rather than service in $omb for bounce back
darcs-hash:20080606063721-84dde-a843ac9ef5b48aa25d15125d4f0be3f0c2e6bfb1.gz
-rw-r--r--actions/finishremotesubscribe.php2
-rw-r--r--actions/remotesubscribe.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/actions/finishremotesubscribe.php b/actions/finishremotesubscribe.php
index 208c2d9d5..1ec842f26 100644
--- a/actions/finishremotesubscribe.php
+++ b/actions/finishremotesubscribe.php
@@ -194,7 +194,7 @@ class FinishremotesubscribeAction extends Action {
common_debug('using request token "'.$tok.'"', __FILE__);
- $url = omb_service_uri($omb[OAUTH_ENDPOINT_ACCESS]);
+ $url = $omb['access_token_url'];
common_debug('using access token url "'.$url.'"', __FILE__);
diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php
index 07f40ea2a..8baa3b7af 100644
--- a/actions/remotesubscribe.php
+++ b/actions/remotesubscribe.php
@@ -311,6 +311,8 @@ class RemotesubscribeAction extends Action {
$omb['listenee'] = $user->nickname;
$omb['token'] = $token;
$omb['secret'] = $secret;
+ # call doesn't work after bounce back so we cache; maybe serialization issue...?
+ $omb['access_token_url'] = omb_service_uri($omb[OAUTH_ENDPOINT_ACCESS]);
$_SESSION['oauth_authorization_request'] = $omb;