mirror of
https://github.com/friendica/friendica
synced 2025-04-26 09:10:15 +00:00
Update contact when the avatar hadn't been found
This commit is contained in:
parent
dc05172272
commit
9eafcf8484
3 changed files with 24 additions and 6 deletions
|
@ -165,7 +165,7 @@ class Profile extends BaseModule
|
|||
Module\Contact::updateContactFromPoll($contact['id']);
|
||||
}
|
||||
|
||||
if ($cmd === 'updateprofile' && $localRelationship->rel !== Contact::NOTHING) {
|
||||
if ($cmd === 'updateprofile') {
|
||||
self::updateContactFromProbe($contact['id']);
|
||||
}
|
||||
|
||||
|
@ -481,7 +481,7 @@ class Profile extends BaseModule
|
|||
*/
|
||||
private static function updateContactFromProbe(int $contact_id)
|
||||
{
|
||||
$contact = DBA::selectFirst('contact', ['url'], ['id' => $contact_id, 'uid' => local_user(), 'deleted' => false]);
|
||||
$contact = DBA::selectFirst('contact', ['url'], ['id' => $contact_id, 'uid' => [0, local_user()], 'deleted' => false]);
|
||||
if (!DBA::isResult($contact)) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue