mirror of
https://github.com/friendica/friendica
synced 2024-11-19 12:23:40 +00:00
When refreshing the fcontact, the returned array was incomplete
This commit is contained in:
parent
6067c29524
commit
a74b5fdde8
1 changed files with 6 additions and 1 deletions
|
@ -826,9 +826,14 @@ class Diaspora
|
||||||
// if Diaspora connectivity is enabled on their server
|
// if Diaspora connectivity is enabled on their server
|
||||||
if ($r && ($r["network"] === NETWORK_DIASPORA)) {
|
if ($r && ($r["network"] === NETWORK_DIASPORA)) {
|
||||||
self::addFContact($r, $update);
|
self::addFContact($r, $update);
|
||||||
|
|
||||||
|
// Fetch the updated or added contact
|
||||||
|
$person = dba::selectFirst('fcontact', [], ['network' => NETWORK_DIASPORA, 'addr' => $handle]);
|
||||||
|
if (!DBM::is_result($person)) {
|
||||||
$person = $r;
|
$person = $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $person;
|
return $person;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue