From 6772d991ae340bb3816b286343baebe7713b3e22 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 31 Dec 2015 01:55:18 +0100 Subject: [PATCH] Only provide Notice oEmbed data for local notices --- plugins/Oembed/OembedPlugin.php | 3 +++ 1 file changed, 3 insertions(+) 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',