Only provide Notice oEmbed data for local notices
This commit is contained in:
parent
f61187a210
commit
6772d991ae
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user