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 fc3ae1343d
Switch from unmaintained paperclip to kt-paperclip (#16724)
* Switch from unmaintained paperclip to kt-paperclip

* Drop some compatibility monkey-patches not required by kt-paperclip

* Drop media spoof check monkey-patching

It's broken with kt-paperclip and hopefully it won't be needed anymore

* Fix regression introduced by paperclip 6.1.0

* Do not rely on pathname to call FastImage

* Add test for ogg vorbis file with cover art

* Add audio/vorbis to the accepted content-types

This seems erroneous as this would be the content-type for a vorbis stream
without an ogg container, but that's what the `marcel` gem outputs, so…

* Restore missing for_as_default method

* Refactor Attachmentable concern and delay Paperclip's content-type spoof check

Check for content-type spoofing *after* setting the extension ourselves, this
fixes a regression with kt-paperclip's validations being more strict than
paperclip 6.0.0 and rejecting some Pleroma uploads because of unknown
extensions.

* Please CodeClimate

* Add audio/vorbis to the unreliable set

It doesn't correspond to a file format and thus has no extension associated.
4 years ago
..
controllers Change routing paths to use usernames in web UI (#16171) 4 years ago
fabricators Add feature to automatically delete old toots (#16529) 4 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) 4 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) 4 years ago
mailers Add Ruby 3.0 support (#16046) 4 years ago
models Switch from unmaintained paperclip to kt-paperclip (#16724) 4 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 Move create/destroy actions for api/v1/statuses to namespace (#3678) 8 years ago
serializers/activitypub Fix account URI in UpdatePollSerializer (#11194) 6 years ago
services Fix processing mentions to domains with non-ascii TLDs (#16689) 4 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) 4 years ago
rails_helper.rb Add WebAuthn as an alternative 2FA method (#14466) 5 years ago
spec_helper.rb Move rspec examples to tmp dir (#12539) 5 years ago