Account for missing contact in dfrn_request_post

- Address https://github.com/friendica/friendica/issues/9250#issuecomment-743407998
This commit is contained in:
Hypolite Petovan 2020-12-13 12:18:10 -05:00
parent 8f10cf8e53
commit 61aa4efa89
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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 = '';