]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Twitter-compatible API - /statuses/show - better err msg if notice doesn't exist
authorzach <zach@controlyourself.ca>
Tue, 19 Aug 2008 20:23:18 +0000 (16:23 -0400)
committerzach <zach@controlyourself.ca>
Tue, 19 Aug 2008 20:23:18 +0000 (16:23 -0400)
darcs-hash:20080819202318-462f3-bc08a105c6b41b6a89a2358962440f68a9a79c7f.gz

actions/twitapistatuses.php

index 2dcff985c816c2d04e5fb73e371543758ef56cbe..4ad2766c0a439ccdf5ac015fe80d4bcc68e943ba 100644 (file)
@@ -543,10 +543,8 @@ class TwitapistatusesAction extends TwitterapiAction {
                                $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');
+                       // XXX: Twitter just sets a 404 header and doens't bother to return an err msg
+                       $this->client_error(_('No status with that ID found.'), 404, $apidata['content-type']);
                }
                
                exit();