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/app/lib
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
..
activitypub Fix Mastodon not understanding as:Public and Public (#15948) 4 years ago
connection_pool
nodeinfo
ostatus
proof_provider
rss
settings Update Mastodon to Rails 6.1 (#15910) 4 years ago
access_token_extension.rb
activity_tracker.rb
application_extension.rb
cache_buster.rb
delivery_failure_tracker.rb Update Mastodon to Rails 6.1 (#15910) 4 years ago
entity_cache.rb Fix cache_collection crashing when given an empty collection (#15921) 4 years ago
extractor.rb Update twitter-text from 1.14 to 3.1.0 and fix toot character counting (#15382) 4 years ago
fast_geometry_parser.rb
fast_ip_map.rb
feed_manager.rb Update Mastodon to Rails 6.1 (#15910) 4 years ago
formatter.rb Prepare Mastodon for zeitwerk autoloader (#15917) 4 years ago
hash_object.rb
inline_renderer.rb
language_detector.rb Fix URL scanning in note length validator and preview card fetching (#15827) 4 years ago
potential_friendship_tracker.rb
proof_provider.rb
rate_limiter.rb
request.rb
request_pool.rb
response_with_limit.rb
rss_builder.rb
search_query_parser.rb
search_query_transformer.rb
sidekiq_error_handler.rb
spam_check.rb
status_filter.rb
status_finder.rb
status_reach_finder.rb
tag_manager.rb
themes.rb
toc_generator.rb
user_settings_decorator.rb
validation_error_formatter.rb Add `details` to error response for `POST /api/v1/accounts` in REST API (#15803) 4 years ago
webfinger.rb replace all instances of "ends_with?" with "end_with?" (#15745) 4 years ago
webfinger_resource.rb