From: friendica Date: Fri, 27 Apr 2012 23:23:25 +0000 (-0700) Subject: pass zrl to dfrn_request as fallback X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ecc4962bd1455d4ded6570f6d08ccab7e838fe8b;p=friendica.git pass zrl to dfrn_request as fallback --- diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php index 79583ea182..18798aa15b 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 );