mirror of
https://github.com/friendica/friendica
synced 2024-12-23 22:40:17 +00:00
Added checked for URL change
This commit is contained in:
parent
187dbc09ac
commit
4e5a3ab0f1
1 changed files with 10 additions and 0 deletions
|
@ -1238,6 +1238,16 @@ class Contact
|
|||
$contact = self::getByURL($data['alias'], false, ['id']);
|
||||
if (!empty($contact['id'])) {
|
||||
$contact_id = $contact['id'];
|
||||
Logger::info('Fetched id by alias', ['cid' => $contact_id, 'url' => $url, 'probed_url' => $data['url'], 'alias' => $data['alias']]);
|
||||
}
|
||||
}
|
||||
|
||||
// Possibly there is a contact entry with the probed URL
|
||||
if (!$contact_id && ($url != $data['url']) && ($url != $data['alias'])) {
|
||||
$contact = self::getByURL($data['url'], false, ['id']);
|
||||
if (!empty($contact['id'])) {
|
||||
$contact_id = $contact['id'];
|
||||
Logger::info('Fetched id by url', ['cid' => $contact_id, 'url' => $url, 'probed_url' => $data['url'], 'alias' => $data['alias']]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue