summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/LinkPreview/oembedproxyaction.php3
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()) {