mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Some fixes related to optimized images (#4233)
* FIX: No need to manually include relation. * FIX: OR instead of chaining relation.
This commit is contained in:
committed by
Régis Hanol
parent
0cf5a1705a
commit
0634834009
@@ -41,7 +41,6 @@ class Upload < ActiveRecord::Base
|
||||
)
|
||||
|
||||
if thumbnail
|
||||
optimized_images << thumbnail
|
||||
self.width = width
|
||||
self.height = height
|
||||
save(validate: false)
|
||||
|
||||
Reference in New Issue
Block a user