このコミットが含まれているのは:
2025-07-07 08:28:51 +09:00
コミット 9c1efbf047
3個のファイルの変更41行の追加4行の削除
+1 -1
ファイルの表示
@@ -20,7 +20,7 @@ class PreviewController < ApplicationController
return head :unauthorized unless current_user
url = params[:url]
return head :bad_request unless url.present?
return head :bad_request if url.blank?
path = Rails.root.join('tmp', "thumb_#{ SecureRandom.hex }.png")
system("node #{ Rails.root }/lib/screenshot.js #{ Shellwords.escape(url) } #{ path }")