mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
don't run mailing list if mailing list mode is disabled
This commit is contained in:
parent
d09a20210b
commit
a202ec2028
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,8 @@ module Jobs
|
||||||
class NotifyMailingListSubscribers < Jobs::Base
|
class NotifyMailingListSubscribers < Jobs::Base
|
||||||
|
|
||||||
def execute(args)
|
def execute(args)
|
||||||
|
return if SiteSetting.disable_mailing_list_mode
|
||||||
|
|
||||||
post_id = args[:post_id]
|
post_id = args[:post_id]
|
||||||
post = post_id ? Post.with_deleted.find_by(id: post_id) : nil
|
post = post_id ? Post.with_deleted.find_by(id: post_id) : nil
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue