Only provide Notice oEmbed data for local notices

This commit is contained in:
Mikael Nordfeldth 2015-12-31 01:55:18 +01:00
parent f61187a210
commit 6772d991ae

View File

@ -77,6 +77,9 @@ class OembedPlugin extends Plugin
'title'=>'oEmbed'),null); 'title'=>'oEmbed'),null);
break; break;
case 'shownotice': case 'shownotice':
if (!$action->notice->isLocal()) {
break;
}
try { try {
$action->element('link',array('rel'=>'alternate', $action->element('link',array('rel'=>'alternate',
'type'=>'application/json+oembed', 'type'=>'application/json+oembed',