mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
allow views to be specified in import mode
This commit is contained in:
@@ -73,6 +73,10 @@ class TopicCreator
|
||||
topic_params[key] = @opts[key] if @opts[key].present?
|
||||
end
|
||||
|
||||
if topic_params[:import_mode] && @opts[:views].to_i > 0
|
||||
topic_params[:views] = @opts[:views].to_i
|
||||
end
|
||||
|
||||
# Automatically give it a moderator warning subtype if specified
|
||||
topic_params[:subtype] = TopicSubtype.moderator_warning if @opts[:is_warning]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user