Account for missing contact in dfrn_request_post
- Address https://github.com/friendica/friendica/issues/9250#issuecomment-743407998
This commit is contained in:
parent
8f10cf8e53
commit
61aa4efa89
2 changed files with 2 additions and 2 deletions
|
@ -299,7 +299,7 @@ function dfrn_request_post(App $a)
|
||||||
$network = $data["network"];
|
$network = $data["network"];
|
||||||
|
|
||||||
// Canonicalize email-style profile locator
|
// Canonicalize email-style profile locator
|
||||||
$url = Probe::webfingerDfrn($data['url'], $hcard);
|
$url = Probe::webfingerDfrn($data['url'] ?? $url, $hcard);
|
||||||
|
|
||||||
if (substr($url, 0, 5) === 'stat:') {
|
if (substr($url, 0, 5) === 'stat:') {
|
||||||
// Every time we detect the remote subscription we define this as OStatus.
|
// Every time we detect the remote subscription we define this as OStatus.
|
||||||
|
|
|
@ -258,7 +258,7 @@ class Probe
|
||||||
* @return string profile link
|
* @return string profile link
|
||||||
* @throws HTTPException\InternalServerErrorException
|
* @throws HTTPException\InternalServerErrorException
|
||||||
*/
|
*/
|
||||||
public static function webfingerDfrn($webbie, &$hcard_url)
|
public static function webfingerDfrn(string $webbie, string &$hcard_url)
|
||||||
{
|
{
|
||||||
$profile_link = '';
|
$profile_link = '';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue