Contacts from probeable networks are now updated correctly
This commit is contained in:
parent
9d770c0060
commit
2df2a8f123
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user