Skip to content
Snippets Groups Projects
  1. May 06, 2021
    • Claire's avatar
      Add Ruby 3.0 support (#16046) · 566fc909
      Claire authored
      * Fix issues with POSIX::Spawn, Terrapin and Ruby 3.0
      
      Also improve the Terrapin monkey-patch for the stderr/stdout issue.
      
      * Fix keyword argument handling throughout the codebase
      
      * Monkey-patch Paperclip to fix keyword arguments handling in validators
      
      * Change validation_extensions to please CodeClimate
      
      * Bump microformats from 4.2.1 to 4.3.1
      
      * Allow Ruby 3.0
      
      * Add Ruby 3.0 test target to CircleCI
      
      * Add test for admin dashboard warnings
      
      * Fix admin dashboard warnings on Ruby 3.0
      Unverified
      566fc909
  2. May 05, 2021
  3. Apr 29, 2021
  4. Apr 27, 2021
  5. Apr 13, 2021
  6. Apr 12, 2021
  7. Mar 31, 2021
  8. Mar 24, 2021
    • Stanislas's avatar
    • Claire's avatar
      Update Mastodon to Rails 6.1 (#15910) · cbd0ee1d
      Claire authored
      * 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
      Unverified
      cbd0ee1d
    • Claire's avatar
      Change mastodon:setup to not call assets:precompile in docker (#13942) · 82556834
      Claire authored
      It appears assets are built during image build, and they shouldn't need
      to be rebuilt, since we now have reproducible builds.
      Unverified
      82556834
  9. Mar 19, 2021
  10. Mar 17, 2021
    • Claire's avatar
      Prepare Mastodon for Rails 6 (#15911) · 43eff898
      Claire authored
      * 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
      Unverified
      43eff898
  11. Mar 01, 2021
  12. Feb 19, 2021
  13. Feb 16, 2021
  14. Feb 13, 2021
  15. Feb 11, 2021
  16. Jan 31, 2021
    • Shubhendra Singh Chauhan's avatar
      Fixed code quality issues (#15541) · c8d11b8b
      Shubhendra Singh Chauhan authored
      * Added .deepsource.toml
      
      * Removed bad use of `alias`
      
      * Fixed operand order in the binary expression
      
      * Prefixed unused method arguments with an underscore
      
      * Replaced the old OpenSSL algorithmic constants with the newer strings initializers.
      
      * Removed unnecessary UTF-8 encoding comment
      Unverified
      c8d11b8b
  17. Jan 29, 2021
  18. Jan 22, 2021
  19. Jan 12, 2021
  20. Jan 09, 2021
  21. Jan 07, 2021
    • abcang's avatar
      Fix rubocop config and warnings (#15503) · efffdd37
      abcang authored
      * disable NewCops
      
      * update TargetRubyVersion
      
      * Fix Lint/MissingSuper for ActiveModelSerializers::Model
      
      * Fix Lint/MissingSuper for feed
      
      * Fix Lint/FloatComparison
      
      * Do not use instance variables
      Unverified
      efffdd37
  22. Dec 30, 2020
  23. Dec 27, 2020
  24. Dec 26, 2020
    • ThibG's avatar
      Fix being able to import more than allowed number of follows (#15384) · f1f96ebf
      ThibG authored
      
      * Fix being able to import more than allowed number of follows
      
      Without this commit, if someone tries importing a second list of accounts to
      follow before the first one has been processed, this will queue imports for
      the two whole lists, even if they exceed the account's allowed number of
      outgoing follows.
      
      This commit changes it so the individual queued imports aren't exempt from
      the follow limit check (they remain exempt from the rate-limiting check
      though).
      
      * Catch validation errors to not re-queue failed follows
      
      Co-authored-by: default avatarClaire <claire.github-309c@sitedethib.com>
      Unverified
      f1f96ebf
  25. Dec 23, 2020
  26. Dec 22, 2020
  27. Dec 19, 2020
  28. Dec 18, 2020
Loading