mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
DEV: followup to prev commit
337bd9a0f7616414 did not account for optimized image being nil
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user