Account for missing contact in dfrn_request_post

- Address https://github.com/friendica/friendica/issues/9250#issuecomment-743407998
pull/9655/head
Hypolite Petovan 2020-12-13 12:18:10 -05:00
rodzic 8f10cf8e53
commit 61aa4efa89
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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

Wyświetl plik

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