From 81be82ddab0a3fd1065cb94a794c44019d776556 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Thu, 21 Oct 2010 14:32:29 -0700 Subject: [PATCH] put lrdd link into html headers for completeness --- mod/profile.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mod/profile.php b/mod/profile.php index ed26237b68..f99a3c4f2a 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'] .= '' . "\r\n" ; - $a->page['htmlhead'] .= '' . "\r\n" ; - $uri = urlencode('acct:' . $a->user['nickname'] . '@' . $a->get_hostname() . (($a->path) ? '/' . $a->path : '')); - $a->page['htmlhead'] .= '' . "\r\n"; + profile_load($a,$which,$profile); + + $a->page['htmlhead'] .= '' . "\r\n" ; + $a->page['htmlhead'] .= '' . "\r\n" ; + $uri = urlencode('acct:' . $a->user['nickname'] . '@' . $a->get_hostname() . (($a->path) ? '/' . $a->path : '')); + $a->page['htmlhead'] .= '' . "\r\n"; + header('Link: <' . $a->get_baseurl() . '/xrd/?uri=' . $uri . '>; rel="lrdd"; type="application/xrd+xml"'); $dfrn_pages = array('request', 'confirm', 'notify', 'poll');