mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 13:24:40 +08:00
FIX: Don't validate approved posts.
A moderator has already validated them. Otherwise we hit things like rate limits.
This commit is contained in:
@ -51,7 +51,7 @@ class QueuedPost < ActiveRecord::Base
|
||||
QueuedPost.transaction do
|
||||
change_to!(:approved, approved_by)
|
||||
|
||||
creator = PostCreator.new(user, create_options)
|
||||
creator = PostCreator.new(user, create_options.merge(skip_validations: true))
|
||||
created_post = creator.create
|
||||
end
|
||||
created_post
|
||||
|
Reference in New Issue
Block a user