diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-12-10 02:43:33 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-12-10 02:43:33 -0600 |
commit | 41b0d10e88e02810006657c27b8ea3576646d45e (patch) | |
tree | 1eb71e32b2564f1d00787bce55b2c6a135f01253 /app/helpers | |
parent | ae16b3b466d8afa59a890cb81d1c1e9e189372a8 (diff) |
remove duplicate domain check
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/autoreject_helper.rb | 4 |
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 |