From 941e096df4b88943079f751082c3708da5da449b Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Wed, 6 Mar 2019 21:58:06 +0100 Subject: [PATCH] Fix error in base import script Follow-up to 655a08dbbda1636409b15cc5611fcd3afc63263d --- script/import_scripts/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/import_scripts/base.rb b/script/import_scripts/base.rb index 4b2965e765b..39d20568467 100644 --- a/script/import_scripts/base.rb +++ b/script/import_scripts/base.rb @@ -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)