From a202ec2028eaaf56d9f76287867fe8d487cf02d8 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 22 Mar 2016 14:50:35 +1100 Subject: [PATCH] don't run mailing list if mailing list mode is disabled --- app/jobs/regular/notify_mailing_list_subscribers.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/jobs/regular/notify_mailing_list_subscribers.rb b/app/jobs/regular/notify_mailing_list_subscribers.rb index 29436e42327..540b472c233 100644 --- a/app/jobs/regular/notify_mailing_list_subscribers.rb +++ b/app/jobs/regular/notify_mailing_list_subscribers.rb @@ -3,6 +3,8 @@ module Jobs class NotifyMailingListSubscribers < Jobs::Base def execute(args) + return if SiteSetting.disable_mailing_list_mode + post_id = args[:post_id] post = post_id ? Post.with_deleted.find_by(id: post_id) : nil