mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 09:26:16 +08:00
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] = (post[:raw] || "").scrub.strip.presence || "<Empty imported post>"
|
||||||
post[:raw] = process_raw post[:raw]
|
post[:raw] = process_raw post[:raw]
|
||||||
if @bbcode_to_md
|
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
|
end
|
||||||
post[:like_count] ||= 0
|
post[:like_count] ||= 0
|
||||||
post[:cooked] = pre_cook post[:raw]
|
post[:cooked] = pre_cook post[:raw]
|
||||||
|
|
|
@ -559,7 +559,7 @@ class ImportScripts::Base
|
||||||
|
|
||||||
opts[:guardian] = STAFF_GUARDIAN
|
opts[:guardian] = STAFF_GUARDIAN
|
||||||
if @bbcode_to_md
|
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
|
end
|
||||||
|
|
||||||
post_creator = PostCreator.new(user, opts)
|
post_creator = PostCreator.new(user, opts)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user