Update src/Model/ContactRelation.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Michael Vogel 2020-07-26 23:39:47 +02:00 committed by GitHub
parent d2a4a57810
commit ab04227ce3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ class ContactRelation
} }
} }
} elseif ($contact['created'] > DateTimeFormat::utc('now - 1 day')) { } elseif ($contact['created'] > DateTimeFormat::utc('now - 1 day')) {
Logger::info('Newly created contacs are not discovered to avoid DDoS attacks.', ['id' => $contact['id'], 'url' => $url, 'discovery' => $contact['created']]); // Newly created contacts are not discovered to avoid DDoS attacks
Logger::info('No discovery - Contact record is less than a day old.', ['id' => $contact['id'], 'url' => $url, 'discovery' => $contact['created']]);
return; return;
} }