mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:51:07 +08:00
FIX: Don't rate limit the creation of topics when skipping validations
This commit is contained in:
@ -124,6 +124,8 @@ class TopicCreator
|
||||
end
|
||||
|
||||
def save_topic(topic)
|
||||
topic.disable_rate_limits! if @opts[:skip_validations]
|
||||
|
||||
unless topic.save(validate: !@opts[:skip_validations])
|
||||
rollback_from_errors!(topic)
|
||||
end
|
||||
|
Reference in New Issue
Block a user