From: Mike Macgirvin Date: Tue, 12 Oct 2010 11:39:32 +0000 (-0700) Subject: more comprehensive XRD linkages X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dba866c689e4539b389c9c3982a6e1fb7b373c03;p=friendica.git more comprehensive XRD linkages --- diff --git a/include/hostxrd.php b/include/hostxrd.php index 3279cea68e..f8c3989276 100644 --- a/include/hostxrd.php +++ b/include/hostxrd.php @@ -1,5 +1,5 @@ hostname,$tpl); session_write_close(); diff --git a/mod/xrd.php b/mod/xrd.php index 53985e10c1..fd87803e9d 100644 --- a/mod/xrd.php +++ b/mod/xrd.php @@ -20,16 +20,18 @@ function xrd_content(&$a) { $salmon_key = salmon_key($r[0]['spubkey']); - + header("Content-type: text/xml"); $tpl = load_view_file('view/xrd_person.tpl'); $o = replace_macros($tpl, array( - '$accturi' => $uri, - '$profile_url' => $a->get_baseurl() . '/profile/' . $r[0]['nickname'], - '$photo' => $a->get_baseurl() . '/photo/profile/' . $r[0]['uid'], - '$salmon' => $a->get_baseurl() . '/salmon/' . $r[0]['nickname'] . '/mention', - '$modexp' => 'data:application/magic-public-key,' . $salmon_key + '$accturi' => $uri, + '$profile_url' => $a->get_baseurl() . '/profile/' . $r[0]['nickname'], + '$atom' => $a->get_baseurl() . '/dfrn_poll/' . $r[0]['nickname'], + '$photo' => $a->get_baseurl() . '/photo/profile/' . $r[0]['uid'], + '$salmon' => $a->get_baseurl() . '/salmon/' . $r[0]['nickname'], + '$salmen' => $a->get_baseurl() . '/salmon/' . $r[0]['nickname'] . '/mention', + '$modexp' => 'data:application/magic-public-key,' . $salmon_key )); echo $o; diff --git a/view/xrd_person.tpl b/view/xrd_person.tpl index d7ce13efab..24bf9449a0 100644 --- a/view/xrd_person.tpl +++ b/view/xrd_person.tpl @@ -1,20 +1,30 @@ - - + + $accturi + $accturi $profile_url - - - - - - + + + + + + + + +