diff options
author | Brion Vibber <brion@pobox.com> | 2010-12-06 13:37:57 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-12-06 13:37:57 -0800 |
commit | fb1fc8a046c5697d262d59c1ead9231068e515c5 (patch) | |
tree | 0e48e6145443c4937e6efb6fa9ff362e1d49512a | |
parent | da8b268e06f4a6217c2bbb4918888001f8e7e4cd (diff) |
Use short API-style error responses for LinkPreview's oembed proxy
-rw-r--r-- | plugins/LinkPreview/oembedproxyaction.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/LinkPreview/oembedproxyaction.php b/plugins/LinkPreview/oembedproxyaction.php index 470f78073..bc80ee5cf 100644 --- a/plugins/LinkPreview/oembedproxyaction.php +++ b/plugins/LinkPreview/oembedproxyaction.php @@ -50,6 +50,9 @@ class OembedproxyAction extends OembedAction function handle($args) { + // Trigger short error responses; not a human-readable web page. + StatusNet::setApi(true); + // We're not a general oEmbed proxy service; limit to valid sessions. $token = $this->trimmed('token'); if (!$token || $token != common_session_token()) { |