]> git.mxchange.org Git - friendica.git/commitdiff
Support "fedifinder" to import contacts
authorMichael <heluecht@pirati.ca>
Sun, 6 Nov 2022 10:05:54 +0000 (10:05 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 6 Nov 2022 10:05:54 +0000 (10:05 +0000)
src/Module/Settings/Account.php

index fc6c3972a537c3ccb42ebbcccd3ddb0444a4605f..c9b140acb3d268efe06167346085773bf7cc00b8 100644 (file)
@@ -375,7 +375,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) || Network::isValidHttpUrl($csvRow[0])) {
-                                                       Worker::add(Worker::PRIORITY_MEDIUM, 'AddContact', DI::userSession()->getLocalUserId(), $csvRow[0]);
+                                                       Worker::add(Worker::PRIORITY_MEDIUM, 'AddContact', DI::userSession()->getLocalUserId(), trim($csvRow[0], '@'));
                                                } else {
                                                        Logger::notice('Invalid account', ['url' => $csvRow[0]]);
                                                }