]> git.mxchange.org Git - friendica.git/blobdiff - mod/xrd.php
statusnet improvements
[friendica.git] / mod / xrd.php
index 0b4bd0d1e7d7a795799759fa5aa0ae6af5a01bf5..de0c20ea5d39c5b7ef2b2f12a387429f1fe26d1b 100644 (file)
@@ -24,10 +24,10 @@ function xrd_content(&$a) {
 
        $salmon_key = salmon_key($r[0]['spubkey']);
 
-
+       header('Access-Control-Allow-Origin: *');
        header("Content-type: text/xml");
 
-       $tpl = load_view_file('view/xrd_person.tpl');
+       $tpl = file_get_contents('view/xrd_person.tpl');
 
        $o = replace_macros($tpl, array(
                '$accturi'     => $uri,
@@ -39,6 +39,10 @@ function xrd_content(&$a) {
                '$modexp'      => 'data:application/magic-public-key,'  . $salmon_key
        ));
 
+
+       $arr = array('user' => $r[0], 'xml' => $o);
+       call_hooks('personal_xrd', $arr);
+
        echo $o;
        killme();