mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
correct bugs in lithium importer
This commit is contained in:
parent
64bbf2c1c4
commit
fd82107df8
1 changed files with 2 additions and 2 deletions
|
@ -737,7 +737,7 @@ SQL
|
||||||
current = 0
|
current = 0
|
||||||
max = Post.count
|
max = Post.count
|
||||||
|
|
||||||
Post.where(topic_id: 164).find_each do |post|
|
Post.all.find_each do |post|
|
||||||
begin
|
begin
|
||||||
new_raw = postprocess_post_raw(post.raw, post.user_id)
|
new_raw = postprocess_post_raw(post.raw, post.user_id)
|
||||||
post.raw = new_raw
|
post.raw = new_raw
|
||||||
|
@ -761,7 +761,7 @@ SQL
|
||||||
uri.hostname = nil
|
uri.hostname = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
if !uri.hostname
|
if uri && !uri.hostname
|
||||||
if l["href"]
|
if l["href"]
|
||||||
l["href"] = uri.path
|
l["href"] = uri.path
|
||||||
# we have an internal link, lets see if we can remap it?
|
# we have an internal link, lets see if we can remap it?
|
||||||
|
|
Loading…
Reference in a new issue