diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php index 3f784015d..47478d384 100644 --- a/mod/dfrn_request.php +++ b/mod/dfrn_request.php @@ -299,7 +299,7 @@ function dfrn_request_post(App $a) $network = $data["network"]; // Canonicalize email-style profile locator - $url = Probe::webfingerDfrn($data['url'], $hcard); + $url = Probe::webfingerDfrn($data['url'] ?? $url, $hcard); if (substr($url, 0, 5) === 'stat:') { // Every time we detect the remote subscription we define this as OStatus. diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 67db29a4f..d5dcba529 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -258,7 +258,7 @@ class Probe * @return string profile link * @throws HTTPException\InternalServerErrorException */ - public static function webfingerDfrn($webbie, &$hcard_url) + public static function webfingerDfrn(string $webbie, string &$hcard_url) { $profile_link = '';