1
1
Fork 0

Prevent endless loop when updating contact by probe

This commit is contained in:
Michael 2021-07-17 04:57:21 +00:00
parent 2a873651c5
commit 89f7ee2cc5

View file

@ -2117,7 +2117,7 @@ class Contact
}
if (Strings::normaliseLink($ret['url']) != Strings::normaliseLink($contact['url'])) {
$cid = self::getIdForURL($ret['url']);
$cid = self::getIdForURL($ret['url'], 0, false);
if (!empty($cid) && ($cid != $id)) {
Logger::notice('URL of contact changed.', ['id' => $id, 'new_id' => $cid, 'old' => $contact['url'], 'new' => $ret['url']]);
return self::updateFromProbeArray($cid, $ret);