Include max image dimensions in error (#11552)

lolsob-rspec
Arnout Engelen 2019-08-15 20:20:20 +02:00 committed by Eugen Rochko
parent 406f2f7d57
commit bd43bd8925
1 changed files with 1 additions and 1 deletions

View File

@ -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