Merge commit '9d664f87a04b6a5157ddbe60ee33b5b7a960198e' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2024-09-29 11:06:09 +02:00
212 changed files with 1839 additions and 807 deletions

View File

@@ -7,7 +7,7 @@ module Paperclip
width, height, data = blurhash_params
# Guard against segfaults if data has unexpected size
raise RangeError("Invalid image data size (expected #{width * height * 3}, got #{data.size})") if data.size != width * height * 3 # TODO: should probably be another exception type
raise RangeError, "Invalid image data size (expected #{width * height * 3}, got #{data.size})" if data.size != width * height * 3 # TODO: should probably be another exception type
attachment.instance.blurhash = Blurhash.encode(width, height, data, **(options[:blurhash] || {}))