about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-10 02:43:33 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-10 02:43:33 -0600
commit41b0d10e88e02810006657c27b8ea3576646d45e (patch)
tree1eb71e32b2564f1d00787bce55b2c6a135f01253 /app/helpers
parentae16b3b466d8afa59a890cb81d1c1e9e189372a8 (diff)
remove duplicate domain check
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/autoreject_helper.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/helpers/autoreject_helper.rb b/app/helpers/autoreject_helper.rb
index ec88a4825..2f869d405 100644
--- a/app/helpers/autoreject_helper.rb
+++ b/app/helpers/autoreject_helper.rb
@@ -17,10 +17,6 @@ module AutorejectHelper
     blocks = DomainBlock.suspend
     return [:domain, uri] if blocks.where(domain: domain).or(blocks.where('domain LIKE ?', "%.#{domain}")).exists?
 
-    domain = uri.scan(/[\w\-]+\.[\w\-]+(?:\.[\w\-]+)*/).first
-    blocks = DomainBlock.suspend
-    return [:domain, uri] if blocks.where(domain: domain).or(blocks.where('domain LIKE ?', "%.#{domain}")).exists?
-
     if @json
       oid = @json['id']
       if oid