about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/helpers/moderation_helper.rb2
-rw-r--r--app/workers/scheduler/janitor_scheduler.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/moderation_helper.rb b/app/helpers/moderation_helper.rb
index 13966405e..2c45b4b84 100644
--- a/app/helpers/moderation_helper.rb
+++ b/app/helpers/moderation_helper.rb
@@ -61,7 +61,7 @@ module ModerationHelper
     true
   end
 
-  def domain_exists(domain)
+  def domain_exists?(domain)
     begin
       code = Request.new(:head, "https://#{domain}").perform(&:code)
     rescue
diff --git a/app/workers/scheduler/janitor_scheduler.rb b/app/workers/scheduler/janitor_scheduler.rb
index 97e11ddf2..c01cb8b4e 100644
--- a/app/workers/scheduler/janitor_scheduler.rb
+++ b/app/workers/scheduler/janitor_scheduler.rb
@@ -54,7 +54,7 @@ class Scheduler::JanitorScheduler
   def import_blocklists!
     blocks = merged_blocklist.reject { |entry| entry[:domain].in?(@exclude_domains) }
     blocks.each do |entry|
-      next unless domain_exists(entry[:domain])
+      next unless domain_exists?(entry[:domain])
       block = DomainBlock.create!(entry)
       DomainBlockWorker.perform_async(block)
       Admin::ActionLog.create(account: @account, action: :create, target: block)