Fix uploading images from images on servers behind cloudflare

This commit is contained in:
Donovan Daniels 2024-10-11 18:39:08 -05:00
parent 81607e68c4
commit da068e44d0
Signed by: Donovan_DMC
GPG Key ID: 907D29CBFD6157BA

View File

@ -69,7 +69,7 @@ class FileDownload
return file_url unless is_cloudflare?(file_url)
url = file_url.dup
url.query_values = url.query_values.to_h.merge(nc: Time.now)
url.query_values = url.query_values.to_h.merge(nc: Time.now.to_i)
url
end