summaryrefslogtreecommitdiff
path: root/actions/twitapifriendships.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/twitapifriendships.php')
-rw-r--r--actions/twitapifriendships.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/twitapifriendships.php b/actions/twitapifriendships.php
index 29c2311b3..89b60e505 100644
--- a/actions/twitapifriendships.php
+++ b/actions/twitapifriendships.php
@@ -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