aboutsummaryrefslogtreecommitdiffstats
path: root/mod/xrd.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-12 04:39:32 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-12 04:39:32 -0700
commitdba866c689e4539b389c9c3982a6e1fb7b373c03 (patch)
treea7694df28b750ae6c915f9298051d25e268a709f /mod/xrd.php
parent013d2604f886bc7cbd2c5263d3577e8cf40f9fcc (diff)
downloadvolse-hubzilla-dba866c689e4539b389c9c3982a6e1fb7b373c03.tar.gz
volse-hubzilla-dba866c689e4539b389c9c3982a6e1fb7b373c03.tar.bz2
volse-hubzilla-dba866c689e4539b389c9c3982a6e1fb7b373c03.zip
more comprehensive XRD linkages
Diffstat (limited to 'mod/xrd.php')
-rw-r--r--mod/xrd.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/mod/xrd.php b/mod/xrd.php
index 53985e10c..fd87803e9 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;