Merge pull request #4489 from annando/missing-fid

When refreshing the fcontact, the returned array was incomplete
2022.09-rc
Hypolite Petovan 2018-02-22 05:03:30 -05:00 zatwierdzone przez GitHub
commit 8a3927e12c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -826,7 +826,12 @@ class Diaspora
// if Diaspora connectivity is enabled on their server
if ($r && ($r["network"] === NETWORK_DIASPORA)) {
self::addFContact($r, $update);
$person = $r;
// Fetch the updated or added contact
$person = dba::selectFirst('fcontact', [], ['network' => NETWORK_DIASPORA, 'addr' => $handle]);
if (!DBM::is_result($person)) {
$person = $r;
}
}
}