X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FLinkPreview%2Foembedproxyaction.php;h=bc80ee5cf9548cbaf963adf5365a9f73a211c906;hb=974d0c48f6234a99b0d28f6c54033434cace877c;hp=470f7807312878da6fb97f9d5fda6ec9b13638e3;hpb=e0e7cb7c5376a7adfdcf8e0724aedfae3de471ef;p=quix0rs-gnu-social.git 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()) {