From 2df2a8f123daf823fa167e8e5f2fb30d15929b57 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 28 Apr 2023 18:25:55 +0000 Subject: [PATCH] Contacts from probeable networks are now updated correctly --- src/Model/Contact.php | 5 +++++ 1 file changed, 5 insertions(+) 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