diff --git a/actions/finishremotesubscribe.php b/actions/finishremotesubscribe.php index 208c2d9d59..1ec842f264 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 07f40ea2aa..8baa3b7af5 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;