Bye bye byebug.
This commit is contained in:
parent
6c8c91dca4
commit
f6d9745c5f
|
@ -74,7 +74,6 @@ class UploadsController < ApplicationController
|
||||||
return { errors: I18n.t("upload.file_missing") } if tempfile.nil?
|
return { errors: I18n.t("upload.file_missing") } if tempfile.nil?
|
||||||
|
|
||||||
# convert pasted images to HQ jpegs
|
# convert pasted images to HQ jpegs
|
||||||
byebug
|
|
||||||
if filename == "__blob__.png" && SiteSetting.convert_pasted_images_to_hq_jpg
|
if filename == "__blob__.png" && SiteSetting.convert_pasted_images_to_hq_jpg
|
||||||
jpeg_path = "#{File.dirname(tempfile.path)}/image.jpg"
|
jpeg_path = "#{File.dirname(tempfile.path)}/image.jpg"
|
||||||
OptimizedImage.ensure_safe_paths!(tempfile.path, jpeg_path)
|
OptimizedImage.ensure_safe_paths!(tempfile.path, jpeg_path)
|
||||||
|
|
Loading…
Reference in New Issue