mirror of
https://github.com/friendica/friendica
synced 2025-04-25 06:30:11 +00:00
Issue 11492: Improvements for contact import
This commit is contained in:
parent
6f70d21e07
commit
972f91436c
2 changed files with 2 additions and 2 deletions
|
@ -349,7 +349,7 @@ class Account extends BaseSettings
|
|||
// "http" or "@" to be present in the string.
|
||||
// All other fields from the row will be ignored
|
||||
if ((strpos($csvRow[0], '@') !== false) || in_array(parse_url($csvRow[0], PHP_URL_SCHEME), ['http', 'https'])) {
|
||||
Worker::add(PRIORITY_LOW, 'AddContact', $_SESSION['uid'], $csvRow[0]);
|
||||
Worker::add(PRIORITY_MEDIUM, 'AddContact', local_user(), $csvRow[0]);
|
||||
} else {
|
||||
Logger::notice('Invalid account', ['url' => $csvRow[0]]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue