mirror of
https://github.com/friendica/friendica
synced 2024-11-17 23:43:40 +00:00
Prevent dead contacts from being revived
This commit is contained in:
parent
e4511c700e
commit
94ad35a5df
1 changed files with 1 additions and 1 deletions
|
@ -1367,7 +1367,7 @@ class Contact
|
||||||
$personal_contact = DBA::selectFirst('contact', $fields, ["`nurl` = ? AND `uid` != 0", Strings::normaliseLink($url)]);
|
$personal_contact = DBA::selectFirst('contact', $fields, ["`nurl` = ? AND `uid` != 0", Strings::normaliseLink($url)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DBA::isResult($personal_contact)) {
|
if (DBA::isResult($personal_contact) && !Probe::isProbable($personal_contact['network'])) {
|
||||||
Logger::info('Take contact data from personal contact', ['url' => $url, 'update' => $update, 'contact' => $personal_contact]);
|
Logger::info('Take contact data from personal contact', ['url' => $url, 'update' => $update, 'contact' => $personal_contact]);
|
||||||
$data = $personal_contact;
|
$data = $personal_contact;
|
||||||
$data['photo'] = $personal_contact['avatar'];
|
$data['photo'] = $personal_contact['avatar'];
|
||||||
|
|
Loading…
Reference in a new issue