mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
lint the file
somehow I did not notice this on save
This commit is contained in:
parent
a5ce9cb470
commit
7ce58df7bf
1 changed files with 2 additions and 2 deletions
|
@ -943,8 +943,8 @@ def inline_img_tags(post)
|
|||
if !upload
|
||||
local_file = File.join(Rails.root, "public", $2)
|
||||
if File.exist?(local_file)
|
||||
File.open(local_file) do |f|
|
||||
upload = UploadCreator.new(f,"image").create_for(post.user_id)
|
||||
File.open(local_file) do |f|
|
||||
upload = UploadCreator.new(f, "image").create_for(post.user_id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue