mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 18:03:38 +08:00
FIX: Don't rate limit the creation of topics when skipping validations
This commit is contained in:
parent
5bf8c31af4
commit
405edebfed
|
@ -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 New Issue
Block a user