From 61aa4efa8941659dee5c7dc4986ebc99922ae2b3 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 13 Dec 2020 12:18:10 -0500 Subject: [PATCH] Account for missing contact in dfrn_request_post - Address https://github.com/friendica/friendica/issues/9250#issuecomment-743407998 --- mod/dfrn_request.php | 2 +- src/Network/Probe.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php index 3f784015dd..47478d3848 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 67db29a4f3..d5dcba5295 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 = ''; -- 2.39.5