Skip to content

Commit

Permalink
Include max image dimensions in error (mastodon#11552)
Browse files Browse the repository at this point in the history
  • Loading branch information
raboof authored and hiyuki2578 committed Oct 2, 2019
1 parent bdb3ecb commit 60361c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/attachmentable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def check_image_dimensions

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

Expand Down

0 comments on commit 60361c5

Please sign in to comment.