mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 14:44:26 +08:00
DEV: followup to prev commit
337bd9a0f7616414 did not account for optimized image being nil
This commit is contained in:
parent
337bd9a0f7
commit
76c4bc925d
@ -26,7 +26,7 @@ class TopicThumbnail < ActiveRecord::Base
|
||||
upload_id: original.id,
|
||||
max_width: max_width,
|
||||
max_height: max_height,
|
||||
optimized_image_id: optimized.id
|
||||
optimized_image_id: optimized&.id
|
||||
])
|
||||
|
||||
TopicThumbnail.find_by(
|
||||
|
Loading…
x
Reference in New Issue
Block a user