diff options
author | zotlabs <mike@macgirvin.com> | 2017-08-23 20:47:08 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-08-23 20:47:08 -0700 |
commit | 66b032823b4fd941f613b0194bb8412b216cc748 (patch) | |
tree | 7144fefaac0d2e2fa638bde7d41d28957dd6541c /Zotlabs/Module/Photos.php | |
parent | c9745a41295337444832f0c787d0dd4fb3425e1f (diff) | |
download | volse-hubzilla-66b032823b4fd941f613b0194bb8412b216cc748.tar.gz volse-hubzilla-66b032823b4fd941f613b0194bb8412b216cc748.tar.bz2 volse-hubzilla-66b032823b4fd941f613b0194bb8412b216cc748.zip |
oembed provider cleanup, add oembed to cards
Diffstat (limited to 'Zotlabs/Module/Photos.php')
-rw-r--r-- | Zotlabs/Module/Photos.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Zotlabs/Module/Photos.php b/Zotlabs/Module/Photos.php index 0f80f46a5..bb7079a6a 100644 --- a/Zotlabs/Module/Photos.php +++ b/Zotlabs/Module/Photos.php @@ -671,8 +671,13 @@ class Photos extends \Zotlabs\Web\Controller { */ if($datatype === 'album') { - - \App::$page['htmlhead'] .= "\r\n" . '<link rel="alternate" type="application/json+oembed" href="' . z_root() . '/oep?f=&url=' . urlencode(z_root() . '/' . \App::$cmd) . '" title="oembed" />' . "\r\n"; + + head_add_link([ + 'rel' => 'alternate', + 'type' => 'application/json+oembed', + 'href' => z_root() . '/oep?f=&url=' . urlencode(z_root() . '/' . \App::$query_string), + 'title' => 'oembed' + ]); if($x = photos_album_exists($owner_uid, get_observer_hash(), $datum)) { \App::set_pager_itemspage(60); |