From b5659ed85a31093d0e7f6cb58abdaa8410a7a2a6 Mon Sep 17 00:00:00 2001 From: zach Date: Thu, 17 Jul 2008 01:44:11 -0400 Subject: Twitter-compatible API - /statuses/show and /statuses/update now work darcs-hash:20080717054411-ca946-e839882ebec3f6d6a12a3f5ecdc1cc403e8afe51.gz --- actions/api.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actions/api.php') 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() -- cgit v1.2.3-54-g00ecf