aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Channel.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/Channel.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/Channel.php')
-rw-r--r--Zotlabs/Module/Channel.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php
index c006d65d4..5e7db79d9 100644
--- a/Zotlabs/Module/Channel.php
+++ b/Zotlabs/Module/Channel.php
@@ -180,7 +180,12 @@ class Channel extends \Zotlabs\Web\Controller {
$simple_update = (($update) ? " AND item_unseen = 1 " : '');
- \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'
+ ]);
if($update && $_SESSION['loadtime'])
$simple_update = " AND (( item_unseen = 1 AND item.changed > '" . datetime_convert('UTC','UTC',$_SESSION['loadtime']) . "' ) OR item.changed > '" . datetime_convert('UTC','UTC',$_SESSION['loadtime']) . "' ) ";