about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-11-02 11:46:49 -0600
committerFire Demon <firedemon@creature.cafe>2020-11-02 14:03:21 -0600
commitbe354c660d9c3ee837a547357453591e217ea342 (patch)
tree8e172ef88c765b10e36f969b48881c143f7fc5ac /app
parentff1125404eec13cdc8aab7e99f76767428794a89 (diff)
Allow local domain
Diffstat (limited to 'app')
-rw-r--r--app/helpers/domain_control_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/domain_control_helper.rb b/app/helpers/domain_control_helper.rb
index d061de492..cd51a8b7e 100644
--- a/app/helpers/domain_control_helper.rb
+++ b/app/helpers/domain_control_helper.rb
@@ -12,7 +12,7 @@ module DomainControlHelper
       end
     end
 
-    !DomainAllow.allowed?(domain) || DomainBlock.blocked?(domain)
+    domain != Rails.configuration.x.local_domain && (!DomainAllow.allowed?(domain) || DomainBlock.blocked?(domain))
   rescue Addressable::URI::InvalidURIError, IDN::Idna::IdnaError
     nil
   end