mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: Don't rate limit the creation of topics when skipping validations
This commit is contained in:
parent
5bf8c31af4
commit
405edebfed
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue