From e440b9cea02549032ba4f79c43964219dea23d82 Mon Sep 17 00:00:00 2001 From: zach Date: Mon, 18 Aug 2008 20:39:31 -0400 Subject: Twitter-compatible API - moved show() to the right file darcs-hash:20080819003931-462f3-4b5b838a2fc5f872391581a189d33abdd8eeb744.gz --- lib/twitterapi.php | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'lib/twitterapi.php') diff --git a/lib/twitterapi.php b/lib/twitterapi.php index f06c1d188..096dee269 100644 --- a/lib/twitterapi.php +++ b/lib/twitterapi.php @@ -150,28 +150,6 @@ class TwitterapiAction extends Action { function show_twitter_json_users($twitter_users) { print(json_encode($twitter_users)); } - - function show($args, $apidata) { - parent::handle($args); - - $id = $apidata['api_arg']; - $notice = Notice::staticGet($id); - - if ($notice) { - if ($apidata['content-type'] == 'xml') { - $this->show_single_xml_status($notice); - } elseif ($apidata['content-type'] == 'json') { - $this->show_single_json_status($notice); - } - } else { - - // XXX: This is all that Twitter does. It doesn't show an XML or JSON error msg. - // Should we call client_error() to be more consistent? - header('HTTP/1.1 404 Not Found'); - } - - exit(); - } function show_single_xml_status($notice) { $this->init_document('xml'); -- cgit v1.2.3-54-g00ecf