diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-19 15:51:56 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-19 15:51:56 -0700 |
commit | 0b2d85891e651bab2c3ddd0c7396d557a052dd18 (patch) | |
tree | db2529b11d6eafd20e76442e8a5fbc9cc41f1946 /mod/profile.php | |
parent | 3876cab8eac1364e7074e8da9aeb83badb3b65b3 (diff) | |
download | volse-hubzilla-0b2d85891e651bab2c3ddd0c7396d557a052dd18.tar.gz volse-hubzilla-0b2d85891e651bab2c3ddd0c7396d557a052dd18.tar.bz2 volse-hubzilla-0b2d85891e651bab2c3ddd0c7396d557a052dd18.zip |
lrdd link on profile page (for salmon m/e), remove dfrn-template, qualify some contact lookups, some cleanup of app/boot
Diffstat (limited to 'mod/profile.php')
-rw-r--r-- | mod/profile.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/profile.php b/mod/profile.php index 5576b49dd..8fa25cdbf 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -61,10 +61,11 @@ function profile_init(&$a) { $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-template" content="' . $a->get_baseurl() . "/profile/%s" . '" />' . "\r\n" ; - $a->page['htmlhead'] .= '<meta name="dfrn-global-visibility" content="' . (($a->profile['net-publish']) ? 'true' : 'false') . '" />' . "\r\n" ; $dfrn_pages = array('request', 'confirm', 'notify', 'poll'); |