You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/spec
Claire 84ceebe1c4
Fix media attachment size validation not correctly accounting for file type (#16819)
* 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
3 years ago
..
controllers Fix webauthn secure key authentication (#16792) 3 years ago
fabricators Add feature to automatically delete old toots (#16529) 3 years ago
features Add submit button to the top of preferences pages (#13068) 5 years ago
fixtures Switch from unmaintained paperclip to kt-paperclip (#16724) 3 years ago
helpers Change RTL detection to rely on unicode-bidi paragraph by paragraph (#14573) 4 years ago
lib Change routing paths to use usernames in web UI (#16171) 3 years ago
mailers Add Ruby 3.0 support (#16046) 4 years ago
models Fix media attachment size validation not correctly accounting for file type (#16819) 3 years ago
policies Add support for reversible suspensions through ActivityPub (#14989) 4 years ago
presenters Change references to tootsuite/mastodon to mastodon/mastodon (#16491) 4 years ago
requests Further preparation for Rails 6 (#15916) 4 years ago
routing
serializers/activitypub
services Fix processing mentions to domains with non-ascii TLDs (#16689) 3 years ago
support Fix base64-encoded file uploads not being possible (#12748) 5 years ago
validators Add canonical e-mail blocks for suspended accounts (#16049) 4 years ago
views Change references to tootsuite/mastodon to mastodon/mastodon (#16491) 4 years ago
workers Fix followers synchronization mechanism not working when URI has empty path (#16510) 3 years ago
rails_helper.rb Add WebAuthn as an alternative 2FA method (#14466) 4 years ago
spec_helper.rb Move rspec examples to tmp dir (#12539) 5 years ago