]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Invite.php
New user account type "Channel Relay"
[friendica.git] / src / Module / Invite.php
index e4c22ae1e2283ed49eb3c1ff5aaffcc1ae8fd3cc..f300f96435e76a0949d8609218e78a8c6fd2a7b5 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -78,7 +78,7 @@ class Invite extends BaseModule
                foreach ($recipients as $recipient) {
                        $recipient = trim($recipient);
 
-                       if (!filter_var($recipient, FILTER_VALIDATE_EMAIL)) {
+                       if (DI::config()->get('system', 'only_valid_email_addresses', true) && !filter_var($recipient, FILTER_VALIDATE_EMAIL)) {
                                DI::sysmsg()->addNotice(DI::l10n()->t('%s : Not a valid email address.', $recipient));
                                continue;
                        }