5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 19:46:23 +00:00

Merge branch 'usar-sutty-editor' into panel.sutty.nl
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-04-07 14:26:15 -03:00
commit 8e900084f2

View file

@ -28,7 +28,9 @@ module ActiveStorage
begin
url = request.body.read
body = Down.download(url, max_size: 111.megabytes)
checksum = nil
checksum = Digest::MD5.file(body.path).base64digest
blob.metadata[:url] = url
blob.update_columns checksum: checksum, byte_size: body.size, metadata: blob.metadata
rescue StandardError => e
ExceptionNotifier.notify_exception(e, data: { key: token[:key], url: url, site: site.name })