summaryrefslogtreecommitdiff
path: root/lib/twitterapi.php
diff options
context:
space:
mode:
authorzach <zach@copley.name>2008-08-15 14:53:17 -0400
committerzach <zach@copley.name>2008-08-15 14:53:17 -0400
commit35d17146213228445b0f30548aca01c9e1a71154 (patch)
tree3fb1cd320e7f69a3a55b984cdac97a06b943aac5 /lib/twitterapi.php
parenta95242bd1d59d87481bb56c9451a348361fc2350 (diff)
Twitter-compatible API: support for new in_reply_to_status_id in statuses/update
darcs-hash:20080815185317-ca946-11c3f9f7255180d5d6ea7b115b3e33b2abb7fe93.gz
Diffstat (limited to 'lib/twitterapi.php')
-rw-r--r--lib/twitterapi.php4
1 files changed, 3 insertions, 1 deletions
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');
}