mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Disable validation during thumbnail creation
This commit is contained in:
parent
db066b5d3f
commit
2e8838a0cd
@ -34,7 +34,7 @@ class Upload < ActiveRecord::Base
|
|||||||
optimized_images << thumbnail
|
optimized_images << thumbnail
|
||||||
self.width = width
|
self.width = width
|
||||||
self.height = height
|
self.height = height
|
||||||
save!
|
save(validate: false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user