]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/ContactRelation.php
Merge pull request #8934 from annando/fix-fatal
[friendica.git] / src / Model / ContactRelation.php
index 19baaef795abf4f89e9777daa74c9c5ac8f56ec4..06c25059fa0c459799f1de0365597137852104d1 100644 (file)
@@ -76,7 +76,7 @@ class ContactRelation
                }
 
                if ($contact['last-discovery'] > DateTimeFormat::utc('now - 1 month')) {
-                       Logger::info('Last discovery was less then a month before.', ['id' => $contact['id'], 'url' => $url, 'discovery' => $contact['last-discovery']]);
+                       Logger::info('No discovery - Last was less than a month ago.', ['id' => $contact['id'], 'url' => $url, 'discovery' => $contact['last-discovery']]);
                        return;
                }
 
@@ -95,7 +95,8 @@ class ContactRelation
                                }
                        }
                } 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;
                }