]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
getting the id from the wrong place
authorEvan Prodromou <evan@prodromou.name>
Fri, 18 Jul 2008 04:23:52 +0000 (00:23 -0400)
committerEvan Prodromou <evan@prodromou.name>
Fri, 18 Jul 2008 04:23:52 +0000 (00:23 -0400)
darcs-hash:20080718042352-84dde-6326cd8c68b73ccf801b93314e3f5352ff744544.gz

actions/twitapifriendships.php

index 29c2311b34a7a28ae417578112e4c2ab2ac0059a..89b60e505583a54b1cb89fc8a94774354d2229f0 100644 (file)
@@ -26,7 +26,7 @@ class TwitapifriendshipsAction extends TwitterapiAction {
        function create($args, $apidata) {
                parent::handle($args);
 
-               $id = $this->trimmed('id');
+               $id = $apidata['api_arg'];
 
                $other = $this->get_user($id);
 
@@ -73,7 +73,7 @@ class TwitapifriendshipsAction extends TwitterapiAction {
        
        function destroy($args, $apidata) {
                parent::handle($args);
-               $id = $this->trimmed('id');
+               $id = $apidata['api_arg'];
 
                # We can't subscribe to a remote person, but we can unsub