summaryrefslogtreecommitdiff
path: root/actions/api.php
diff options
context:
space:
mode:
authorzach <zach@copley.name>2008-07-17 01:44:11 -0400
committerzach <zach@copley.name>2008-07-17 01:44:11 -0400
commitb5659ed85a31093d0e7f6cb58abdaa8410a7a2a6 (patch)
treeefe3a9e5c2dae295db9f986a95dbcb259d0f7eec /actions/api.php
parent1f7e5ca8f30cabbe04f439f41ef7624d124111ab (diff)
Twitter-compatible API - /statuses/show and /statuses/update now work
darcs-hash:20080717054411-ca946-e839882ebec3f6d6a12a3f5ecdc1cc403e8afe51.gz
Diffstat (limited to 'actions/api.php')
-rw-r--r--actions/api.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/actions/api.php b/actions/api.php
index 6a420c95e..ea24cbe4a 100644
--- a/actions/api.php
+++ b/actions/api.php
@@ -21,7 +21,7 @@ if (!defined('LACONICA')) { exit(1); }
class ApiAction extends Action {
- var $nickname;
+ var $user;
var $content_type;
var $api_arg;
var $api_method;
@@ -63,7 +63,7 @@ class ApiAction extends Action {
$user = common_check_user($nickname, $password);
if ($user) {
- $this->nickname = $nickname;
+ $this->user = $user;
$this->process_command();
} else {
# basic authentication failed
@@ -88,7 +88,7 @@ class ApiAction extends Action {
$apidata = array( 'content-type' => $this->content_type,
'api_method' => $this->api_method,
'api_arg' => $this->api_arg,
- 'nickanme' => $htis->nickanme);
+ 'user' => $this->user);
call_user_func(array($action_obj, $this->api_method), $_REQUEST, $apidata);
# all API methods should exit()