FIX: allow invite email field to be blank for invite tokens

FIX: allow invite email field to be blank for invite tokens

diff --git a/app/models/invite.rb b/app/models/invite.rb
index bced278..2618b37 100644
--- a/app/models/invite.rb
+++ b/app/models/invite.rb
@@ -18,7 +18,7 @@ class Invite < ActiveRecord::Base
   has_many :topic_invites
   has_many :topics, through: :topic_invites, source: :topic
   validates_presence_of :invited_by_id
-  validates :email, email: true, format: { with: EmailValidator.email_regex }
+  validates :email, email: true, format: { with: EmailValidator.email_regex }, allow_blank: true
 
   before_create do
     self.invite_key ||= SecureRandom.hex

GitHub sha: 435fe8ac

This commit has been mentioned on Discourse Meta. There might be relevant details there: