aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Display.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-23 20:47:08 -0700
committerzotlabs <mike@macgirvin.com>2017-08-23 20:47:08 -0700
commit66b032823b4fd941f613b0194bb8412b216cc748 (patch)
tree7144fefaac0d2e2fa638bde7d41d28957dd6541c /Zotlabs/Module/Display.php
parentc9745a41295337444832f0c787d0dd4fb3425e1f (diff)
downloadvolse-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/Display.php')
-rw-r--r--Zotlabs/Module/Display.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php
index 1077cbdb9..b698513ba 100644
--- a/Zotlabs/Module/Display.php
+++ b/Zotlabs/Module/Display.php
@@ -175,9 +175,12 @@ class Display extends \Zotlabs\Web\Controller {
'$mid' => $item_hash
));
- \App::$page['htmlhead'] .= "\r\n" . '<link rel="alternate" type="application/json+oembed" href="' . z_root() . '/oep?f=&url=' . urlencode(z_root() . '/' . \App::$query_string) . '" 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'
+ ]);
}
$observer_hash = get_observer_hash();