mirror of
https://github.com/friendica/friendica
synced 2025-04-30 00:24:24 +02:00
Improved checks when adding contacts
This commit is contained in:
parent
86e5fdece6
commit
8424c78a59
2 changed files with 9 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue