Don't update mail contacts when polling

Bu işleme şunda yer alıyor:
Michael 2020-01-19 19:27:30 +00:00
ebeveyn 7d35cc6a09
işleme 3bd99bccba
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme

Dosyayı Görüntüle

@ -38,7 +38,6 @@ class OnePoll
return;
}
Contact::updateFromProbe($contact_id, '', $force);
$contact = DBA::selectFirst('contact', [], ['id' => $contact_id]);
if (!DBA::isResult($contact)) {
@ -46,6 +45,10 @@ class OnePoll
return;
}
if (($contact['network'] != Protocol::MAIL) || $force) {
Contact::updateFromProbe($contact_id, '', $force);
}
// Special treatment for wrongly detected local contacts
if (!$force && ($contact['network'] != Protocol::DFRN) && Contact::isLocalById($contact_id)) {
Contact::updateFromProbe($contact_id, Protocol::DFRN, true);