mirror of
https://github.com/friendica/friendica
synced 2024-11-17 20:23:40 +00:00
Merge pull request #14517 from annando/dont-revive-contacts
Prevent dead contacts from being revived
This commit is contained in:
commit
a3f38d36b9
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)]);
|
||||
}
|
||||
|
||||
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]);
|
||||
$data = $personal_contact;
|
||||
$data['photo'] = $personal_contact['avatar'];
|
||||
|
|
Loading…
Reference in a new issue