From 1d7d8788bd2a0df37fc5ff441c95749d6f1e0bba Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 6 Nov 2022 10:05:54 +0000 Subject: [PATCH] Support "fedifinder" to import contacts --- src/Module/Settings/Account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Settings/Account.php b/src/Module/Settings/Account.php index fc6c3972a..c9b140acb 100644 --- a/src/Module/Settings/Account.php +++ b/src/Module/Settings/Account.php @@ -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]]); }