remove duplicate domain check

master
multiple creatures 2019-12-10 02:43:33 -06:00
parent ae16b3b466
commit 41b0d10e88
1 changed files with 0 additions and 4 deletions

View File

@ -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