Improved checks when adding contacts

This commit is contained in:
Michael 2021-03-25 05:45:16 +00:00
parent 86e5fdece6
commit 8424c78a59
2 changed files with 9 additions and 4 deletions

View file

@ -2821,6 +2821,9 @@ class Contact
$count = 0;
foreach ($urls as $url) {
if (empty($url) || !is_string($url)) {
continue;
}
$contact = self::getByURL($url, false, ['id', 'updated']);
if (empty($contact['id'])) {
Worker::add(PRIORITY_LOW, 'AddContact', 0, $url);