From: Brion Vibber Date: Mon, 6 Dec 2010 21:37:57 +0000 (-0800) Subject: Use short API-style error responses for LinkPreview's oembed proxy X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fb1fc8a046c5697d262d59c1ead9231068e515c5;p=quix0rs-gnu-social.git Use short API-style error responses for LinkPreview's oembed proxy --- diff --git a/plugins/LinkPreview/oembedproxyaction.php b/plugins/LinkPreview/oembedproxyaction.php index 470f780731..bc80ee5cf9 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()) {