]> cat aescling's git repositories - mastodon.git/commit
Prepare Mastodon for Rails 6 (#15911)
authorClaire <claire.github-309c@sitedethib.com>
Wed, 17 Mar 2021 09:09:55 +0000 (10:09 +0100)
committerGitHub <noreply@github.com>
Wed, 17 Mar 2021 09:09:55 +0000 (10:09 +0100)
commit43eff898a0b0f31aaf042d9d387aaece2627a01d
tree2cfb9f959ffb96d6c964f8249e14dac6d50a39f5
parent9cb6bc56faab374c1c740c7093d5271d37201aed
Prepare Mastodon for Rails 6 (#15911)

* Fix misuse of foreign_type

* Fix use of removed "add_template_helper"

* Use response.media_type instead of response.content_type in tests

* Fix CSV export controller test on Rails 6

Rails 6 sets a "filename*" field in the Content-Disposition header to
explicitly encode the filename as UTF-8.

This changes checks the first part of the Content-Disposition header so
it matches in both Rails 5 and Rails 6.

* Fix emoji formatting with Rails 6

* Make emoji output more idiomatic and robust

* Switch from redis-rails gem to built-in Rails redis cache storage
23 files changed:
Gemfile
Gemfile.lock
app/lib/formatter.rb
app/mailers/notification_mailer.rb
app/mailers/user_mailer.rb
app/models/notification.rb
config/environments/development.rb
config/environments/production.rb
config/initializers/sidekiq.rb
lib/mastodon/redis_config.rb
spec/controllers/accounts_controller_spec.rb
spec/controllers/activitypub/collections_controller_spec.rb
spec/controllers/activitypub/followers_synchronizations_controller_spec.rb
spec/controllers/activitypub/outboxes_controller_spec.rb
spec/controllers/activitypub/replies_controller_spec.rb
spec/controllers/concerns/export_controller_concern_spec.rb
spec/controllers/well_known/host_meta_controller_spec.rb
spec/controllers/well_known/keybase_proof_config_controller_spec.rb
spec/controllers/well_known/nodeinfo_controller_spec.rb
spec/controllers/well_known/webfinger_controller_spec.rb
spec/requests/catch_all_route_request_spec.rb
spec/requests/host_meta_request_spec.rb
spec/requests/webfinger_request_spec.rb