このコミットが含まれているのは:
2026-07-18 17:07:56 +09:00
コミット 583ce22a7e
4個のファイルの変更22行の追加18行の削除
+6 -1
ファイルの表示
@@ -69,7 +69,12 @@ module PostRepr
return nil unless post.thumbnail.attached?
Rails.application.routes.url_helpers.rails_blob_url(post.thumbnail, only_path: false)
rescue
rescue ActionController::UrlGenerationError, ArgumentError, URI::InvalidURIError => e
Rails.logger.warn(
"PostRepr.thumbnail_url failed post_id=#{post.id} " \
"attachment_id=#{post.thumbnail.attachment&.id} " \
"blob_id=#{post.thumbnail.blob&.id} " \
"error_class=#{e.class} message=#{e.message}")
nil
end
end