diff options
author | zotlabs <mike@macgirvin.com> | 2017-02-21 18:58:51 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-02-21 18:58:51 -0800 |
commit | 6644dc4861272273acf683dd6e06ceb586f2e4db (patch) | |
tree | a802599a1b8e60ec2da13a72b7816b3970f3a00c /Zotlabs/Module/Channel.php | |
parent | bbacfbdd6ac09786194502350deb50b0244166b2 (diff) | |
download | volse-hubzilla-6644dc4861272273acf683dd6e06ceb586f2e4db.tar.gz volse-hubzilla-6644dc4861272273acf683dd6e06ceb586f2e4db.tar.bz2 volse-hubzilla-6644dc4861272273acf683dd6e06ceb586f2e4db.zip |
use head_add_link() for feed discovery
Diffstat (limited to 'Zotlabs/Module/Channel.php')
-rw-r--r-- | Zotlabs/Module/Channel.php | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php index 45da92184..0d20e0080 100644 --- a/Zotlabs/Module/Channel.php +++ b/Zotlabs/Module/Channel.php @@ -41,12 +41,20 @@ class Channel extends \Zotlabs\Web\Controller { $profile = argv(1); } - \App::$page['htmlhead'] .= '<link rel="alternate" type="application/atom+xml" title="' . t('Posts and comments') . '" href="' . z_root() . '/feed/' . $which . '" />' . "\r\n" ; - \App::$page['htmlhead'] .= '<link rel="alternate" type="application/atom+xml" title="' . t('Only posts') . '" href="' . z_root() . '/feed/' . $which . '?top=1" />' . "\r\n" ; + head_add_link( [ + 'rel' => 'alternate', + 'type' => 'application/atom+xml', + 'title' => t('Posts and comments'), + 'href' => z_root() . '/feed/' . $which + ]); + + head_add_link( [ + 'rel' => 'alternate', + 'type' => 'application/atom+xml', + 'title' => t('Only posts'), + 'href' => z_root() . '/feed/' . $which . '?f=&top=1' + ]); - // Not yet ready for prime time - // \App::$page['htmlhead'] .= '<link rel="openid.server" href="' . z_root() . '/id/' . $which .'?f=" />' . "\r\n" ; - // \App::$page['htmlhead'] .= '<link rel="openid.delegate" href="' . z_root() . '/channel/' . $which .'" />' . "\r\n" ; // Run profile_load() here to make sure the theme is set before // we start loading content |