From 71a5369fef33f2d8d3b1d5420a5a6e775c439b0d Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Tue, 11 Dec 2018 20:09:46 +0530 Subject: [PATCH] FIX: do not convert quote tags to markdown --- script/bulk_import/base.rb | 2 +- script/import_scripts/base.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/bulk_import/base.rb b/script/bulk_import/base.rb index cf1be396370..02173313e23 100644 --- a/script/bulk_import/base.rb +++ b/script/bulk_import/base.rb @@ -482,7 +482,7 @@ class BulkImport::Base post[:raw] = (post[:raw] || "").scrub.strip.presence || "" 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] diff --git a/script/import_scripts/base.rb b/script/import_scripts/base.rb index 367236092f5..3ce3ef04526 100644 --- a/script/import_scripts/base.rb +++ b/script/import_scripts/base.rb @@ -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)