mirror of https://github.com/mastodon/mastodon
* Fix media attachment size validation not correctly accounting for file type Fixes a regression introduced in #16724 caused by the fact that kt-paperclip now correctly runs validations before processing, meaning that file size verification could not rely on our before_post_processing hook. Moved the `before_post_processing` hooks to `before_validate` to make sure the media attachment type is set correctly before the file gets validated. * Add tests |
4 years ago | |
---|---|---|
.. | ||
controllers | 4 years ago | |
fabricators | 4 years ago | |
features | 5 years ago | |
fixtures | 4 years ago | |
helpers | 4 years ago | |
lib | 4 years ago | |
mailers | 4 years ago | |
models | 4 years ago | |
policies | 4 years ago | |
presenters | 4 years ago | |
requests | 4 years ago | |
routing | 8 years ago | |
serializers/activitypub | 6 years ago | |
services | 4 years ago | |
support | 5 years ago | |
validators | 4 years ago | |
views | 4 years ago | |
workers | 4 years ago | |
rails_helper.rb | 5 years ago | |
spec_helper.rb | 5 years ago |