config: remove enable_image_cropping option.

There's no need to disable this option. Supporting it adds complexity
and disabling it is untested.
This commit is contained in:
evazion
2020-05-17 15:01:59 -05:00
parent 0a12f35c47
commit 24c53172db
6 changed files with 3 additions and 11 deletions

View File

@@ -43,7 +43,7 @@ class PostPresenter
locals[:tooltip] = "#{post.tag_string} rating:#{post.rating} score:#{post.score}"
locals[:cropped_url] = if Danbooru.config.enable_image_cropping && options[:show_cropped] && post.has_cropped? && !CurrentUser.user.disable_cropped_thumbnails?
locals[:cropped_url] = if options[:show_cropped] && post.has_cropped? && !CurrentUser.user.disable_cropped_thumbnails?
post.crop_file_url
else
post.preview_file_url