aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Profile.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-02-21 18:58:51 -0800
committerzotlabs <mike@macgirvin.com>2017-02-21 18:58:51 -0800
commit6644dc4861272273acf683dd6e06ceb586f2e4db (patch)
treea802599a1b8e60ec2da13a72b7816b3970f3a00c /Zotlabs/Module/Profile.php
parentbbacfbdd6ac09786194502350deb50b0244166b2 (diff)
downloadvolse-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/Profile.php')
-rw-r--r--Zotlabs/Module/Profile.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/Zotlabs/Module/Profile.php b/Zotlabs/Module/Profile.php
index 0bc23952b..fda88da52 100644
--- a/Zotlabs/Module/Profile.php
+++ b/Zotlabs/Module/Profile.php
@@ -37,8 +37,21 @@ class Profile extends \Zotlabs\Web\Controller {
$profile = $r[0]['profile_guid'];
}
- \App::$page['htmlhead'] .= '<link rel="alternate" type="application/atom+xml" href="' . z_root() . '/feed/' . $which .'" />' . "\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'
+ ]);
+
+
if(! $profile) {
$x = q("select channel_id as profile_uid from channel where channel_address = '%s' limit 1",
dbesc(argv(1))