mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 03:39:46 +08:00
DEV: followup to prev commit
337bd9a0f7
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…
Reference in New Issue
Block a user