FIX: do not convert quote tags to markdown
This commit is contained in:
parent
c7c56af397
commit
71a5369fef
|
@ -482,7 +482,7 @@ class BulkImport::Base
|
|||
post[:raw] = (post[:raw] || "").scrub.strip.presence || "<Empty imported post>"
|
||||
post[:raw] = process_raw post[:raw]
|
||||
if @bbcode_to_md
|
||||
post[:raw] = post[:raw].bbcode_to_md(false) rescue post[:raw]
|
||||
post[:raw] = post[:raw].bbcode_to_md(false, {}, :disable, :quote) rescue post[:raw]
|
||||
end
|
||||
post[:like_count] ||= 0
|
||||
post[:cooked] = pre_cook post[:raw]
|
||||
|
|
|
@ -559,7 +559,7 @@ class ImportScripts::Base
|
|||
|
||||
opts[:guardian] = STAFF_GUARDIAN
|
||||
if @bbcode_to_md
|
||||
opts[:raw] = opts[:raw].bbcode_to_md(false) rescue opts[:raw]
|
||||
opts[:raw] = opts[:raw].bbcode_to_md(false, {}, :disable, :quote) rescue opts[:raw]
|
||||
end
|
||||
|
||||
post_creator = PostCreator.new(user, opts)
|
||||
|
|
Loading…
Reference in New Issue