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/controllers/api/v1
Claire cbd0ee1d07
Update Mastodon to Rails 6.1 (#15910)
* Update devise-two-factor to unreleased fork for Rails 6 support

Update tests to match new `rotp` version.

* Update nsa gem to unreleased fork for Rails 6 support

* Update rails to 6.1.3 and rails-i18n to 6.0

* Update to unreleased fork of pluck_each for Ruby 6 support

* Run "rails app:update"

* Add missing ActiveStorage config file

* Use config.ssl_options instead of removed ApplicationController#force_ssl

Disabled force_ssl-related tests as they do not seem to be easily testable
anymore.

* Fix nonce directives by removing Rails 5 specific monkey-patching

* Fix fixture_file_upload deprecation warning

* Fix yield-based test failing with Rails 6

* Use Rails 6's index_with when possible

* Use ActiveRecord::Cache::Store#delete_multi from Rails 6

This will yield better performances when deleting an account

* Disable Rails 6.1's automatic preload link headers

Since Rails 6.1, ActionView adds preload links for javascript files
in the Links header per default.

In our case, that will bloat headers too much and potentially cause
issues with reverse proxies. Furhermore, we don't need those links,
as we already output them as HTML link tags.

* Switch to Rails 6.0 default config

* Switch to Rails 6.1 default config

* Do not include autoload paths in the load path
4 years ago
..
accounts Update Mastodon to Rails 6.1 (#15910) 4 years ago
admin Add support for reversible suspensions through ActivityPub (#14989) 4 years ago
announcements Add announcements (#12662) 5 years ago
apps Use raw status code on have_http_status (#7214) 7 years ago
instances Add specs for Api::V1::Instances::PeersController (#9546) 6 years ago
lists Add more granular OAuth scopes (#7929) 7 years ago
polls Add polls (#10111) 6 years ago
push Add REST API for Web Push Notifications subscriptions (#7445) 7 years ago
statuses Fix not being able to unfavorite toots one has lost access to (#15192) 4 years ago
timelines Remove deprecated REST API `GET /api/v1/timelines/direct` (#11212) 6 years ago
accounts_controller_spec.rb Fix muting users with duration via the REST api (#15516) 4 years ago
announcements_controller_spec.rb Add announcements (#12662) 5 years ago
apps_controller_spec.rb Use raw status code on have_http_status (#7214) 7 years ago
blocks_controller_spec.rb Add more granular OAuth scopes (#7929) 7 years ago
bookmarks_controller_spec.rb Support min_id-based pagination for bookmarks (#12381) 5 years ago
conversations_controller_spec.rb Add scheduled statuses (#9706) 6 years ago
custom_emojis_controller_spec.rb Use raw status code on have_http_status (#7214) 7 years ago
domain_blocks_controller_spec.rb Add more granular OAuth scopes (#7929) 7 years ago
endorsements_controller_spec.rb Add spec for Api::V1::EndorsementsController (#9543) 6 years ago
favourites_controller_spec.rb Support min_id-based pagination in REST API (#8736) 7 years ago
filters_controller_spec.rb Add polls (#10111) 6 years ago
follow_requests_controller_spec.rb Change ResolveAccountService's handling of skip_webfinger (#15750) 4 years ago
instances_controller_spec.rb Use raw status code on have_http_status (#7214) 7 years ago
lists_controller_spec.rb Add more granular OAuth scopes (#7929) 7 years ago
markers_controller_spec.rb Add timeline read markers API (#11762) 6 years ago
media_controller_spec.rb Update Mastodon to Rails 6.1 (#15910) 4 years ago
mutes_controller_spec.rb Make Api::V1::MutesController paginate properly (#8472) 7 years ago
notifications_controller_spec.rb Change ResolveAccountService's handling of skip_webfinger (#15750) 4 years ago
polls_controller_spec.rb Fix poll API not requiring authentication on non-public polls (#10960) 6 years ago
reports_controller_spec.rb Support min_id-based pagination in REST API (#8736) 7 years ago
statuses_controller_spec.rb Add specific rate limits for posting and following (#13172) 5 years ago
streaming_controller_spec.rb Lint pass (#8876) 7 years ago
suggestions_controller_spec.rb Re-add follow recommendations API (#7918) 7 years ago
trends_controller_spec.rb Add announcements (#12662) 5 years ago