mirror of
https://github.com/friendica/friendica
synced 2025-04-27 18:30:12 +00:00
Contact updates should now work more reliable
This commit is contained in:
parent
3dac937f22
commit
d4c95e0032
2 changed files with 9 additions and 8 deletions
|
@ -1032,7 +1032,7 @@ class Contact extends BaseObject
|
|||
|
||||
// Update the public contact (contact id = 0)
|
||||
if ($uid != 0) {
|
||||
$pcontact = dba::selectFirst('contact', ['id'], ['nurl' => $contact['nurl']]);
|
||||
$pcontact = dba::selectFirst('contact', ['id'], ['nurl' => $contact['nurl'], 'uid' => 0]);
|
||||
if (DBM::is_result($pcontact)) {
|
||||
self::updateAvatar($avatar, 0, $pcontact['id'], $force);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue