mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Apply syntax_tree formatting to lib/*
This commit is contained in:
@@ -25,7 +25,8 @@ class PostJobsEnqueuer
|
||||
private
|
||||
|
||||
def enqueue_post_alerts
|
||||
Jobs.enqueue(:post_alert,
|
||||
Jobs.enqueue(
|
||||
:post_alert,
|
||||
post_id: @post.id,
|
||||
new_record: true,
|
||||
options: @opts[:post_alert_options],
|
||||
@@ -47,9 +48,7 @@ class PostJobsEnqueuer
|
||||
return if @topic.visible?
|
||||
return if @post.post_type != Post.types[:regular]
|
||||
|
||||
if @topic.topic_embed.present?
|
||||
Jobs.enqueue(:make_embedded_topic_visible, topic_id: @topic.id)
|
||||
end
|
||||
Jobs.enqueue(:make_embedded_topic_visible, topic_id: @topic.id) if @topic.topic_embed.present?
|
||||
end
|
||||
|
||||
def after_post_create
|
||||
@@ -83,8 +82,7 @@ class PostJobsEnqueuer
|
||||
end
|
||||
|
||||
def skip_after_create?
|
||||
@opts[:import_mode] ||
|
||||
@post.post_type == Post.types[:moderator_action] ||
|
||||
@opts[:import_mode] || @post.post_type == Post.types[:moderator_action] ||
|
||||
@post.post_type == Post.types[:small_action]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user