mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 14:08:32 +08:00
Revert "FIX: Return error if new topic category not found"
This reverts commit 9c606dd99a7ce227bde38527986b250d6e6c22dc.
This commit is contained in:
@ -122,9 +122,6 @@ class TopicCreator
|
||||
|
||||
@guardian.ensure_can_create!(Topic, category) unless (@opts[:skip_validations] || @opts[:archetype] == Archetype.private_message)
|
||||
|
||||
if @opts[:category] && category.nil?
|
||||
raise Discourse::NotFound
|
||||
end
|
||||
topic_params[:category_id] = category.id if category.present?
|
||||
|
||||
topic_params[:created_at] = Time.zone.parse(@opts[:created_at].to_s) if @opts[:created_at].present?
|
||||
|
Reference in New Issue
Block a user