]> git.mxchange.org Git - friendica.git/commitdiff
Contacts from probeable networks are now updated correctly
authorMichael <heluecht@pirati.ca>
Fri, 28 Apr 2023 18:25:55 +0000 (18:25 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 28 Apr 2023 18:25:55 +0000 (18:25 +0000)
src/Model/Contact.php

index cf1b528da8e0084c5f68cb0c0c24d3952c76f570..b06cbff875764ead6615b6b8194092bc5e881746 100644 (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