mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 18:33:28 +08:00

When calculating whether the attached uploads went over the SiteSetting.email_total_attachment_size_limit_kb.kilobytes limit, we were using the original_upload for the calculation instead of the actually attached_upload, which will be smaller in most cases because it can be an optimized image.