remove 'crop_tall_images' site setting but keep the behavior

This commit is contained in:
Régis Hanol
2016-05-23 16:42:19 +02:00
parent 667dd54a23
commit 32d253d484
4 changed files with 2 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ class Upload < ActiveRecord::Base
opts = {
filename: self.original_filename,
allow_animation: SiteSetting.allow_animated_thumbnails,
crop: crop && SiteSetting.crop_tall_images
crop: crop
}
if thumbnail = OptimizedImage.create_for(self, width, height, opts)