mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:51:07 +08:00
Import optimizations for topic creation: Prevent queuing of most jobs when importing posts and topics. Only do some recalculations at the end of the import.
This commit is contained in:
@ -48,7 +48,7 @@ class TopicCreator
|
||||
last_post_user_id: @user.id
|
||||
}
|
||||
|
||||
[:subtype, :archetype, :meta_data].each do |key|
|
||||
[:subtype, :archetype, :meta_data, :import_mode].each do |key|
|
||||
topic_params[key] = @opts[key] if @opts[key].present?
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user