From fd82107df8cef24c3492fa538f56b6242093587d Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 3 Aug 2015 17:16:19 +1000 Subject: [PATCH] correct bugs in lithium importer --- script/import_scripts/lithium.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/import_scripts/lithium.rb b/script/import_scripts/lithium.rb index da7b3d905..030ebc467 100644 --- a/script/import_scripts/lithium.rb +++ b/script/import_scripts/lithium.rb @@ -737,7 +737,7 @@ SQL current = 0 max = Post.count - Post.where(topic_id: 164).find_each do |post| + Post.all.find_each do |post| begin new_raw = postprocess_post_raw(post.raw, post.user_id) post.raw = new_raw @@ -761,7 +761,7 @@ SQL uri.hostname = nil end - if !uri.hostname + if uri && !uri.hostname if l["href"] l["href"] = uri.path # we have an internal link, lets see if we can remap it?