mirror of
https://github.com/friendica/friendica
synced 2025-04-29 21:04:24 +02:00
More often update Diaspora contacts
This commit is contained in:
parent
3d9be965a6
commit
ce174cad91
2 changed files with 11 additions and 2 deletions
|
@ -1241,6 +1241,10 @@ class Contact
|
|||
Logger::info('Contact will be updated', ['url' => $url, 'uid' => $uid, 'update' => $update, 'cid' => $contact_id]);
|
||||
}
|
||||
|
||||
if ($data['network'] == Protocol::DIASPORA) {
|
||||
FContact::updateFromProbeArray($data);
|
||||
}
|
||||
|
||||
self::updateFromProbeArray($contact_id, $data);
|
||||
|
||||
// Don't return a number for a deleted account
|
||||
|
@ -2076,6 +2080,11 @@ class Contact
|
|||
}
|
||||
|
||||
$ret = Probe::uri($contact['url'], $network, $contact['uid']);
|
||||
|
||||
if ($ret['network'] == Protocol::DIASPORA) {
|
||||
FContact::updateFromProbeArray($ret);
|
||||
}
|
||||
|
||||
return self::updateFromProbeArray($id, $ret);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue