mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
FIX: refactor ImageSizer.resize
reverts 140d9c2
This commit is contained in:
@ -128,9 +128,7 @@ class Upload < ActiveRecord::Base
|
||||
end
|
||||
|
||||
self.width, self.height = size = FastImage.new(path).size
|
||||
if !size.blank?
|
||||
self.thumbnail_width, self.thumbnail_height = ImageSizer.resize(*size)
|
||||
end
|
||||
self.thumbnail_width, self.thumbnail_height = ImageSizer.resize(*size)
|
||||
nil
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user