Skip to content
Snippets Groups Projects
  1. Oct 14, 2021
  2. Sep 29, 2021
    • Claire's avatar
      Switch from unmaintained paperclip to kt-paperclip (#16724) · fc3ae134
      Claire authored
      * 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.
      Unverified
      fc3ae134
  3. Aug 09, 2021
    • Claire's avatar
      Add feature to automatically delete old toots (#16529) · 4ac78e2a
      Claire authored
      * Add account statuses cleanup policy model
      
      * Record last inspected toot to delete to speed up successive calls to statuses_to_delete
      
      * Add service to cleanup a given account's statuses within a budget
      
      * Add worker to go through account policies and delete old toots
      
      * Fix last inspected status id logic
      
      All existing statuses older or equal to last inspected status id must be
      kept by the current policy. This is an invariant that must be kept so that
      resuming deletion from the last inspected status remains sound.
      
      * Add tests
      
      * Refactor scheduler and add tests
      
      * Add user interface
      
      * Add support for discriminating based on boosts/favs
      
      * Add UI support for min_reblogs and min_favs, rework UI
      
      * Address first round of review comments
      
      * Replace Snowflake#id_at_start with with_random parameter
      
      * Add tests
      
      * Add tests for StatusesCleanupController
      
      * Rework settings page
      
      * Adjust load-avoiding mechanisms
      
      * Please CodeClimate
      Unverified
      4ac78e2a
  4. Aug 08, 2021
  5. Jul 13, 2021
  6. Jul 08, 2021
  7. Jul 07, 2021
  8. Jun 03, 2021
  9. Jun 02, 2021
  10. Jun 01, 2021
  11. May 16, 2021
  12. May 12, 2021
  13. May 11, 2021
  14. May 10, 2021
  15. May 09, 2021
  16. May 08, 2021
  17. May 07, 2021
  18. 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
  19. May 05, 2021
  20. Apr 29, 2021
  21. Apr 27, 2021
  22. Apr 13, 2021
  23. Apr 12, 2021
  24. Mar 31, 2021
  25. 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
  26. Mar 19, 2021
Loading