diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/twitterapi.php | 4 |
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'); } |