inline salmon magic keys
This commit is contained in:
parent
cc64742e23
commit
013d2604f8
4 changed files with 31 additions and 8 deletions
10
mod/xrd.php
10
mod/xrd.php
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once('salmon.php');
|
||||
|
||||
function xrd_content(&$a) {
|
||||
|
||||
|
|
@ -16,6 +17,11 @@ function xrd_content(&$a) {
|
|||
if(! count($r))
|
||||
killme();
|
||||
|
||||
$salmon_key = salmon_key($r[0]['spubkey']);
|
||||
|
||||
|
||||
|
||||
|
||||
$tpl = load_view_file('view/xrd_person.tpl');
|
||||
|
||||
$o = replace_macros($tpl, array(
|
||||
|
|
@ -23,10 +29,10 @@ function xrd_content(&$a) {
|
|||
'$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' => $a->get_baseurl() . '/modexp/' . $r[0]['nickname']
|
||||
'$modexp' => 'data:application/magic-public-key,' . $salmon_key
|
||||
));
|
||||
|
||||
echo $o;
|
||||
killme();
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue