aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-27 16:23:25 -0700
committerfriendica <info@friendica.com>2012-04-27 16:23:25 -0700
commitecc4962bd1455d4ded6570f6d08ccab7e838fe8b (patch)
tree89bc91fba14b0c4a0f4c95403d24d9d381d969df /mod
parentb3750ab54e126b499bb067f39dd55bade46b3267 (diff)
downloadvolse-hubzilla-ecc4962bd1455d4ded6570f6d08ccab7e838fe8b.tar.gz
volse-hubzilla-ecc4962bd1455d4ded6570f6d08ccab7e838fe8b.tar.bz2
volse-hubzilla-ecc4962bd1455d4ded6570f6d08ccab7e838fe8b.zip
pass zrl to dfrn_request as fallback
Diffstat (limited to 'mod')
-rw-r--r--mod/dfrn_request.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php
index 79583ea18..18798aa15 100644
--- a/mod/dfrn_request.php
+++ b/mod/dfrn_request.php
@@ -753,6 +753,11 @@ function dfrn_request_content(&$a) {
$myaddr = ((x($_GET,'address')) ? $_GET['address'] : '');
}
+ // last, try a zrl
+ if(! strlen($myaddr))
+ $myaddr = get_my_url();
+
+
$target_addr = $a->profile['nickname'] . '@' . substr(z_root(), strpos(z_root(),'://') + 3 );