From: Mikael Nordfeldth Date: Thu, 31 Dec 2015 00:55:18 +0000 (+0100) Subject: Only provide Notice oEmbed data for local notices X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6772d991ae340bb3816b286343baebe7713b3e22;p=quix0rs-gnu-social.git Only provide Notice oEmbed data for local notices --- diff --git a/plugins/Oembed/OembedPlugin.php b/plugins/Oembed/OembedPlugin.php index c51e0bfad1..f9bd2af896 100644 --- a/plugins/Oembed/OembedPlugin.php +++ b/plugins/Oembed/OembedPlugin.php @@ -77,6 +77,9 @@ class OembedPlugin extends Plugin 'title'=>'oEmbed'),null); break; case 'shownotice': + if (!$action->notice->isLocal()) { + break; + } try { $action->element('link',array('rel'=>'alternate', 'type'=>'application/json+oembed',