mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 11:19:51 +00: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
|
end
|
||||||
|
|
||||||
def save_topic(topic)
|
def save_topic(topic)
|
||||||
|
topic.disable_rate_limits! if @opts[:skip_validations]
|
||||||
|
|
||||||
unless topic.save(validate: !@opts[:skip_validations])
|
unless topic.save(validate: !@opts[:skip_validations])
|
||||||
rollback_from_errors!(topic)
|
rollback_from_errors!(topic)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user