From 4a367b92efcd48a33aadbf59394eea688a9e776a Mon Sep 17 00:00:00 2001 From: r888888888 Date: Tue, 4 Aug 2015 17:42:19 -0700 Subject: [PATCH] enable janitor trial invite system, fix typo --- app/logical/monthly_maintenance.rb | 2 +- app/models/janitor_trial.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/logical/monthly_maintenance.rb b/app/logical/monthly_maintenance.rb index a1b7c6c96..b7c5959bb 100644 --- a/app/logical/monthly_maintenance.rb +++ b/app/logical/monthly_maintenance.rb @@ -1,6 +1,6 @@ class MonthlyMaintenance def run ActiveRecord::Base.connection.execute("set statement_timeout = 0") - # JanitorTrial.message_candidates! + JanitorTrial.message_candidates! end end diff --git a/app/models/janitor_trial.rb b/app/models/janitor_trial.rb index 6e8aeb4ca..de2e6a096 100644 --- a/app/models/janitor_trial.rb +++ b/app/models/janitor_trial.rb @@ -39,7 +39,7 @@ class JanitorTrial < ActiveRecord::Base Janitors on #{Danbooru.config.app_name} are responsible for helping maintain a high level of quality on the site. They approve uploads from other users and help with other moderation efforts. You would be expected at a minimum to approve a few posts a week. If you are interested, please respond to this message. EOS - Dmail.create_split(:title => "Test Janitor Invitation", :body => body, :to_id => user_id, :from_id => admin.id) + Dmail.create_split(:title => "Test Janitor Invitation", :body => body, :to_id => user.id) end end end