From 35d17146213228445b0f30548aca01c9e1a71154 Mon Sep 17 00:00:00 2001 From: zach Date: Fri, 15 Aug 2008 14:53:17 -0400 Subject: Twitter-compatible API: support for new in_reply_to_status_id in statuses/update darcs-hash:20080815185317-ca946-11c3f9f7255180d5d6ea7b115b3e33b2abb7fe93.gz --- lib/twitterapi.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/twitterapi.php b/lib/twitterapi.php index 30d5bba23..8b4c24cab 100644 --- a/lib/twitterapi.php +++ b/lib/twitterapi.php @@ -158,13 +158,15 @@ class TwitterapiAction extends Action { $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'); } -- cgit v1.2.3-54-g00ecf