pass zrl to dfrn_request as fallback

This commit is contained in:
friendica 2012-04-27 16:23:25 -07:00
parent b3750ab54e
commit ecc4962bd1

View 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 );