]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
store URL rather than service in $omb for bounce back
authorEvan Prodromou <evan@prodromou.name>
Fri, 6 Jun 2008 06:37:21 +0000 (02:37 -0400)
committerEvan Prodromou <evan@prodromou.name>
Fri, 6 Jun 2008 06:37:21 +0000 (02:37 -0400)
darcs-hash:20080606063721-84dde-a843ac9ef5b48aa25d15125d4f0be3f0c2e6bfb1.gz

actions/finishremotesubscribe.php
actions/remotesubscribe.php

index 208c2d9d596e2363c6e844015be0f41d6eb1cd32..1ec842f2647e01c5f462dcf5c471b3219890940a 100644 (file)
@@ -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__);
                
index 07f40ea2aa1f3f93467a7ef56d40f7f0a183db4e..8baa3b7af54ab602ee7cfc334277855ab108ef21 100644 (file)
@@ -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;