diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-21 14:32:29 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-21 14:32:29 -0700 |
commit | 81be82ddab0a3fd1065cb94a794c44019d776556 (patch) | |
tree | f6fbbf261b8e6e62444da241bd981015fd6767cc /mod/profile.php | |
parent | 5edee3c4d1f84c07c1c54775072601188075a542 (diff) | |
download | volse-hubzilla-81be82ddab0a3fd1065cb94a794c44019d776556.tar.gz volse-hubzilla-81be82ddab0a3fd1065cb94a794c44019d776556.tar.bz2 volse-hubzilla-81be82ddab0a3fd1065cb94a794c44019d776556.zip |
put lrdd link into html headers for completeness
Diffstat (limited to 'mod/profile.php')
-rw-r--r-- | mod/profile.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mod/profile.php b/mod/profile.php index ed26237b6..f99a3c4f2 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -60,12 +60,14 @@ function profile_init(&$a) { $which = $a->user['nickname']; $profile = $a->argv[1]; } + profile_load($a,$which,$profile); - $a->page['htmlhead'] .= '<meta name="dfrn-global-visibility" content="' . (($a->profile['net-publish']) ? 'true' : 'false') . '" />' . "\r\n" ; - $a->page['htmlhead'] .= '<link rel="alternate" type="application/atom+xml" href="' . $a->get_baseurl() . '/dfrn_poll/' . $which .'" />' . "\r\n" ; - $uri = urlencode('acct:' . $a->user['nickname'] . '@' . $a->get_hostname() . (($a->path) ? '/' . $a->path : '')); - $a->page['htmlhead'] .= '<link rel="lrdd" type="application/xrd+xml" href="' . $a->get_baseurl() . '/xrd/?uri=' . $uri . '" />' . "\r\n"; + $a->page['htmlhead'] .= '<meta name="dfrn-global-visibility" content="' . (($a->profile['net-publish']) ? 'true' : 'false') . '" />' . "\r\n" ; + $a->page['htmlhead'] .= '<link rel="alternate" type="application/atom+xml" href="' . $a->get_baseurl() . '/dfrn_poll/' . $which .'" />' . "\r\n" ; + $uri = urlencode('acct:' . $a->user['nickname'] . '@' . $a->get_hostname() . (($a->path) ? '/' . $a->path : '')); + $a->page['htmlhead'] .= '<link rel="lrdd" type="application/xrd+xml" href="' . $a->get_baseurl() . '/xrd/?uri=' . $uri . '" />' . "\r\n"; + header('Link: <' . $a->get_baseurl() . '/xrd/?uri=' . $uri . '>; rel="lrdd"; type="application/xrd+xml"'); $dfrn_pages = array('request', 'confirm', 'notify', 'poll'); |