mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: handle missing post body in json in Ning importer
This commit is contained in:
parent
865d6a2d0d
commit
1e339ad527
1 changed files with 1 additions and 0 deletions
|
@ -270,6 +270,7 @@ class ImportScripts::Ning < ImportScripts::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def process_ning_post_body(arg)
|
def process_ning_post_body(arg)
|
||||||
|
return "" if arg.nil?
|
||||||
raw = arg.gsub("</p>\n", "</p>")
|
raw = arg.gsub("</p>\n", "</p>")
|
||||||
|
|
||||||
# youtube iframe
|
# youtube iframe
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue