aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Xrd.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-05-30 16:50:57 -0700
committerzotlabs <mike@macgirvin.com>2017-05-30 16:50:57 -0700
commite48d5383cec4f5e7bd40bbac005819d60f38c970 (patch)
tree5ca43bc55ace4e599aa3210cdd259a996e8f761c /Zotlabs/Module/Xrd.php
parent6962bc5147bed48a0fd6ab31580ba9a0f8f75bf7 (diff)
downloadvolse-hubzilla-e48d5383cec4f5e7bd40bbac005819d60f38c970.tar.gz
volse-hubzilla-e48d5383cec4f5e7bd40bbac005819d60f38c970.tar.bz2
volse-hubzilla-e48d5383cec4f5e7bd40bbac005819d60f38c970.zip
move disapora xrd stuff to plugin
Diffstat (limited to 'Zotlabs/Module/Xrd.php')
-rw-r--r--Zotlabs/Module/Xrd.php15
1 files changed, 2 insertions, 13 deletions
diff --git a/Zotlabs/Module/Xrd.php b/Zotlabs/Module/Xrd.php
index 7b36576e0..17c0faa78 100644
--- a/Zotlabs/Module/Xrd.php
+++ b/Zotlabs/Module/Xrd.php
@@ -30,13 +30,7 @@ class Xrd extends \Zotlabs\Web\Controller {
);
if(! $r)
killme();
-
- $dspr = replace_macros(get_markup_template('xrd_diaspora.tpl'),array(
- '$baseurl' => z_root(),
- '$dspr_guid' => $r[0]['channel_guid'] . str_replace('.','',\App::get_hostname()),
- '$dspr_key' => base64_encode(pemtorsa($r[0]['channel_pubkey']))
- ));
-
+
$salmon_key = salmon_key($r[0]['channel_pubkey']);
header('Access-Control-Allow-Origin: *');
@@ -49,8 +43,7 @@ class Xrd extends \Zotlabs\Web\Controller {
if($aliases[$x] === $resource)
unset($aliases[$x]);
}
-
-
+
$o = replace_macros(get_markup_template('xrd_person.tpl'), array(
'$nick' => $r[0]['channel_address'],
'$accturi' => $resource,
@@ -61,12 +54,8 @@ class Xrd extends \Zotlabs\Web\Controller {
'$zot_post' => z_root() . '/post/' . $r[0]['channel_address'],
'$poco_url' => z_root() . '/poco/' . $r[0]['channel_address'],
'$photo' => z_root() . '/photo/profile/l/' . $r[0]['channel_id'],
- '$dspr' => $dspr,
- // '$salmon' => z_root() . '/salmon/' . $r[0]['channel_address'],
- // '$salmen' => z_root() . '/salmon/' . $r[0]['channel_address'] . '/mention',
'$modexp' => 'data:application/magic-public-key,' . $salmon_key,
'$subscribe' => z_root() . '/follow?url={uri}',
- '$bigkey' => salmon_key($r[0]['channel_pubkey'])
));