diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-07-17 12:33:56 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-07-17 12:33:56 -0400 |
commit | 3dbbefd5ad63679162659ce736e9e556f2efff21 (patch) | |
tree | 7ba64f6b02c7f5f0d7d005bc15f7cb729ddf2815 /actions/shownotice.php | |
parent | 9b372f5bb7638d5d9b4e48ae425d921bc8559235 (diff) | |
parent | 9ed117dc3a405175359d0a541dddfb14cdf15d47 (diff) |
Merge branch 'oembed-provider' into 0.8.x
Diffstat (limited to 'actions/shownotice.php')
-rw-r--r-- | actions/shownotice.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/actions/shownotice.php b/actions/shownotice.php index 1ec38a76b..8f73dc824 100644 --- a/actions/shownotice.php +++ b/actions/shownotice.php @@ -275,6 +275,20 @@ class ShownoticeAction extends OwnerDesignAction $this->element('meta', array('name' => 'microid', 'content' => $id->toString())); } + $this->element('link',array('rel'=>'alternate', + 'type'=>'application/json+oembed', + 'href'=>common_local_url( + 'api', + array('apiaction'=>'oembed','method'=>'oembed.json'), + array('url'=>$this->notice->uri)), + 'title'=>'oEmbed'),null); + $this->element('link',array('rel'=>'alternate', + 'type'=>'text/xml+oembed', + 'href'=>common_local_url( + 'api', + array('apiaction'=>'oembed','method'=>'oembed.xml'), + array('url'=>$this->notice->uri)), + 'title'=>'oEmbed'),null); } } |