Contacts from probeable networks are now updated correctly

This commit is contained in:
Michael 2023-04-28 18:25:55 +00:00
parent 9d770c0060
commit 2df2a8f123

View File

@ -2409,6 +2409,11 @@ class Contact
$condition = ['self' => false, 'nurl' => Strings::normaliseLink($url)];
$condition['network'] = [Protocol::DFRN, Protocol::DIASPORA, Protocol::ACTIVITYPUB];
if (!in_array($contact['network'], Protocol::NATIVE_SUPPORT) && Protocol::supportsProbe($contact['network'])) {
$condition['network'][] = $contact['network'];
}
self::update($fields, $condition);
// We mustn't set the update fields for OStatus contacts since they are updated in OnePoll