From 94ad35a5dfdedb90c0aa8c2a7cd7e78eb5159b23 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 30 Oct 2024 05:07:58 +0000 Subject: [PATCH] Prevent dead contacts from being revived --- src/Model/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index c510e670e4..a440d1e599 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -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'];