about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/domain_block.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/domain_block.rb b/app/models/domain_block.rb
index 2c577ec13..c7395f7a3 100644
--- a/app/models/domain_block.rb
+++ b/app/models/domain_block.rb
@@ -32,7 +32,7 @@ class DomainBlock < ApplicationRecord
   before_save :set_processing
 
   def self.blocked?(domain)
-    where(domain: domain, severity: :suspend).exists?
+    suspend.where(domain: domain).or(suspend.where('domain LIKE ?', "%.#{domain}")).exists?
   end
 
   def self.force_unlisted?(domain)