mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Merge pull request #3573 from gschlager/patch-1
FIX: Disable validation during thumbnail creation
This commit is contained in:
commit
bfb4dc0055
@ -34,7 +34,7 @@ class Upload < ActiveRecord::Base
|
||||
optimized_images << thumbnail
|
||||
self.width = width
|
||||
self.height = height
|
||||
save!
|
||||
save(validate: false)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user