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
1 changed files with 3 additions and 0 deletions

View File

@ -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',