mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
more comprehensive XRD linkages
This commit is contained in:
parent
013d2604f8
commit
dba866c689
3 changed files with 33 additions and 21 deletions
14
mod/xrd.php
14
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue