mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:16:38 -06:00
Okay, THIS time the specs should pass. Geez.
This commit is contained in:
parent
9c461aced4
commit
8942d9a094
@ -132,9 +132,9 @@ class PostCreator
|
||||
|
||||
# We need to enqueue jobs after the transaction. Otherwise they might begin before the data has
|
||||
# been comitted.
|
||||
Jobs.enqueue(:feature_topic_users, topic_id: topic.id) if topic.present?
|
||||
|
||||
post.trigger_post_process
|
||||
topic_id = @opts[:topic_id] || topic.try(:id)
|
||||
Jobs.enqueue(:feature_topic_users, topic_id: topic.id) if topic_id.present?
|
||||
post.trigger_post_process if post.present?
|
||||
|
||||
post
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user