diff options
author | Arnout Engelen <github@bzzt.net> | 2019-08-15 20:20:20 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-08-15 20:20:20 +0200 |
commit | d7bdddbeef3df2fa61d2eee42b544b6553d2d2ea (patch) | |
tree | b7877616160f54263a30016bc2efb2aac824262c /app | |
parent | a5a5a0adec08082a1d527a2f848dc9b0ababf253 (diff) |
Include max image dimensions in error (#11552)
Diffstat (limited to 'app')
-rw-r--r-- | app/models/concerns/attachmentable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/attachmentable.rb b/app/models/concerns/attachmentable.rb index 7c78bb456..246c2c27c 100644 --- a/app/models/concerns/attachmentable.rb +++ b/app/models/concerns/attachmentable.rb @@ -43,7 +43,7 @@ module Attachmentable width, height = FastImage.size(attachment.queued_for_write[:original].path) - raise Mastodon::DimensionsValidationError, "#{width}x#{height} images are not supported" if width.present? && height.present? && (width * height >= MAX_MATRIX_LIMIT) + raise Mastodon::DimensionsValidationError, "#{width}x#{height} images are not supported, must be below #{MAX_MATRIX_LIMIT} sqpx" if width.present? && height.present? && (width * height >= MAX_MATRIX_LIMIT) end end |