FIX: do not convert quote tags to markdown

FIX: do not convert quote tags to markdown
From 71a5369fef33f2d8d3b1d5420a5a6e775c439b0d Mon Sep 17 00:00:00 2001
From: Arpit Jalan <arpit@techapj.com>
Date: Tue, 11 Dec 2018 20:09:46 +0530
Subject: [PATCH] FIX: do not convert quote tags to markdown


diff --git a/script/bulk_import/base.rb b/script/bulk_import/base.rb
index cf1be39..0217331 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 || "<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]
diff --git a/script/import_scripts/base.rb b/script/import_scripts/base.rb
index 3672360..3ce3ef0 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)

GitHub

1 Like

This commit has been mentioned on Discourse Meta. There might be relevant details there: