mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
@@ -563,7 +563,7 @@ class ImportScripts::Base
|
||||
post_creator = PostCreator.new(user, opts)
|
||||
post = post_creator.create
|
||||
post_create_action.try(:call, post) if post
|
||||
if !post || post_creator.errors&.length > 0 ? post : post_creator.errors.full_messages
|
||||
post && post_creator.errors.empty? ? post : post_creator.errors.full_messages
|
||||
end
|
||||
|
||||
def create_upload(user_id, path, source_filename)
|
||||
|
||||
Reference in New Issue
Block a user