]> git.mxchange.org Git - friendica.git/commitdiff
pass zrl to dfrn_request as fallback
authorfriendica <info@friendica.com>
Fri, 27 Apr 2012 23:23:25 +0000 (16:23 -0700)
committerfriendica <info@friendica.com>
Fri, 27 Apr 2012 23:23:25 +0000 (16:23 -0700)
mod/dfrn_request.php

index 79583ea182d001ed078f3542a710e7e8271e7b1a..18798aa15b43ef2b8b41d01350820889d4dce1f5 100644 (file)
@@ -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 );