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/Channel.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/Channel.php')
-rw-r--r-- | Zotlabs/Module/Channel.php | 7 |
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']) . "' ) "; |