mirror of
https://github.com/friendica/friendica
synced 2024-11-19 06:23:40 +00:00
just hostname not url in hm:host - host xrd document
This commit is contained in:
parent
a1786cbf61
commit
bedb4eb715
3 changed files with 3 additions and 3 deletions
2
boot.php
2
boot.php
|
@ -8,7 +8,7 @@ require_once("include/pgettext.php");
|
|||
require_once('include/nav.php');
|
||||
|
||||
define ( 'FRIENDIKA_PLATFORM', 'Free Friendika');
|
||||
define ( 'FRIENDIKA_VERSION', '2.3.1117' );
|
||||
define ( 'FRIENDIKA_VERSION', '2.3.1118' );
|
||||
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
||||
define ( 'DB_UPDATE_VERSION', 1092 );
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ function hostxrd_init(&$a) {
|
|||
|
||||
$tpl = file_get_contents('view/xrd_host.tpl');
|
||||
echo str_replace(array(
|
||||
'$zroot','$domain','$zot_post','$bigkey'),array(z_root(),z_path(),z_root() . '/post', salmon_key(get_config('system','site_pubkey'))),$tpl);
|
||||
'$zhost','$zroot','$domain','$zot_post','$bigkey'),array($a->get_hostname(),z_root(),z_path(),z_root() . '/post', salmon_key(get_config('system','site_pubkey'))),$tpl);
|
||||
session_write_close();
|
||||
exit();
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'
|
||||
xmlns:hm='http://host-meta.net/xrd/1.0'>
|
||||
|
||||
<hm:Host>$zroot</hm:Host>
|
||||
<hm:Host>$zhost</hm:Host>
|
||||
|
||||
<Link rel='lrdd' template='$domain/xrd/?uri={uri}' />
|
||||
<Link rel='acct-mgmt' href='$domain/amcd' />
|
||||
|
|
Loading…
Reference in a new issue