From: Michael Date: Fri, 28 Apr 2023 18:25:55 +0000 (+0000) Subject: Contacts from probeable networks are now updated correctly X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2df2a8f123daf823fa167e8e5f2fb30d15929b57;p=friendica.git Contacts from probeable networks are now updated correctly --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index cf1b528da8..b06cbff875 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -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