mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
Make import scripts work with frozen strings
This commit is contained in:
parent
c70d0c6659
commit
0f3c3bc309
14 changed files with 19 additions and 17 deletions
|
@ -255,7 +255,7 @@ class ImportScripts::Answerbase < ImportScripts::Base
|
|||
upload = @uploader.create_upload(user_id, path, filename)
|
||||
|
||||
if upload.present? && upload.persisted? && !upload_ids.include?(upload.id)
|
||||
raw << "\n" << @uploader.html_for_upload(upload, filename)
|
||||
raw = "#{raw}\n#{@uploader.html_for_upload(upload, filename)}"
|
||||
end
|
||||
else
|
||||
STDERR.puts "Could not find file: #{path}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue