]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/invite.php
check if other user exists before unsub
[quix0rs-gnu-social.git] / actions / invite.php
index 9f9368701cbcb1ec279c1ba981671c60cf8b32b3..3015202e9e69b39fcc59563bd16f42c34d0a727f 100644 (file)
@@ -68,7 +68,7 @@ class InviteAction extends CurrentUserDesignAction
 
         foreach ($addresses as $email) {
             $email = trim($email);
-            if (!Validate::email($email, true)) {
+            if (!Validate::email($email, common_config('email', 'check_domain'))) {
                 $this->showForm(sprintf(_('Invalid email address: %s'), $email));
                 return;
             }
@@ -98,6 +98,12 @@ class InviteAction extends CurrentUserDesignAction
         $this->showPage();
     }
 
+    function showScripts()
+    {
+        parent::showScripts();
+        $this->autofocus('addresses');
+    }
+
     function title()
     {
         if ($this->mode == 'sent') {