mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 23:07:28 +08:00
lint the file
somehow I did not notice this on save
This commit is contained in:
@ -944,7 +944,7 @@ def inline_img_tags(post)
|
|||||||
local_file = File.join(Rails.root, "public", $2)
|
local_file = File.join(Rails.root, "public", $2)
|
||||||
if File.exist?(local_file)
|
if File.exist?(local_file)
|
||||||
File.open(local_file) do |f|
|
File.open(local_file) do |f|
|
||||||
upload = UploadCreator.new(f,"image").create_for(post.user_id)
|
upload = UploadCreator.new(f, "image").create_for(post.user_id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user