Skip to content
Snippets Groups Projects
  1. Apr 08, 2022
    • Eugen Rochko's avatar
    • 0x2019's avatar
      Fix error resposes for `from` search prefix (#17963) · 01253745
      0x2019 authored
      * Fix error responses in `from` search prefix (addresses mastodon/mastodon#17941)
      
      Using unsupported prefixes now reports a 422; searching for posts from an
      account the instance is not aware of reports a 404. TODO: The UI for this
      on the front end is abysmal.
      
      Searching `from:username@domain` now succeeds when `domain` is the local
      domain; searching `from:@username(@domain)?` now works as expected.
      
      * Remove unused methods on new Error classes as they are not being used
      
      Currently when `raise`d there are error messages being supplied, but
      this is not actually being used. The associated `raise`s have been
      edited accordingly.
      
      * Remove needless comments
      
      * Satisfy rubocop
      
      * Try fixing tests being unable to find AccountFindingConcern methods
      
      * Satisfy rubocop
      
      * Simplify `from` prefix logic
      
      This incorporates @ClearlyClaire's suggestion (see
      https://github.com/mastodon/mastodon/pull/17963#pullrequestreview-933986737).
      
      Accepctable account strings in `from:` clauses are more lenient than
      before this commit; for example, `from:@user@example.org@asnteo +cat`
      will not error, and return posts by @user@example.org containing the
      word "cat". This is more consistent with how Mastodon matches mentions
      in statuses. In addition, `from` clauses will not be checked for
      syntatically invalid usernames or domain names, simply 404ing when
      `Account.find_remote!` raises ActiveRecord::NotFound.
      
      New code for this PR that is no longer used has been removed.
      01253745
    • Eugen Rochko's avatar
  2. Apr 07, 2022
  3. Apr 06, 2022
  4. Apr 01, 2022
  5. Mar 30, 2022
  6. Mar 26, 2022
  7. Mar 21, 2022
  8. Mar 17, 2022
  9. Mar 15, 2022
  10. Mar 12, 2022
  11. Mar 07, 2022
    • Claire's avatar
      Add more migration tests (#17710) · 61ae6b35
      Claire authored
      * Add migration tests for hide_network settings migration
      
      * Add tests about suspended/suspended_at
      
      * Add more tests regarding the results of migrations
      
      * Fix migration test regarding stale conflicting remote account
      
      * Add migration tests about AccountConversation
      61ae6b35
  12. Mar 06, 2022
  13. Feb 23, 2022
  14. Feb 22, 2022
    • Claire's avatar
      Fix some media attachments being converted with too high framerates (#17619) · 166f6e4b
      Claire authored
      Video files with variable framerates are converted to constant framerate videos
      and the output framerate picked by ffmpeg is based on the original file's
      container framerate (which can be different from the average framerate).
      
      This means that an input video with variable framerate with about 30 frames per
      second on average, but a maximum of 120 fps will be converted to a constant 120
      fps file, which won't be processed by other Mastodon servers.
      
      This commit changes it so that input files with VFR and a maximum framerate
      above the framerate threshold are converted to VFR files with the maximum frame
      rate enforced.
      166f6e4b
  15. Feb 08, 2022
  16. Feb 03, 2022
  17. Jan 31, 2022
  18. Jan 30, 2022
  19. Jan 23, 2022
  20. Jan 20, 2022
  21. Dec 26, 2021
  22. Dec 17, 2021
  23. Dec 12, 2021
    • Takeshi Umeda's avatar
      Add remove orphans to tootctl statuses remove (#17067) · 6c8c031b
      Takeshi Umeda authored
      * Add remove orphans to tootctl statuses remove
      
      * Add REINDEX and change option from vacuum to compression-database
      
      * Changed to extract the deletion target of conversations to a temporary table
      
      * Support progress bar and exceptions when media remove
      
      * Add continue option
      
      * Fix compression to compress
      
      * Remove skip_remove_orphans
      6c8c031b
  24. Nov 26, 2021
  25. Nov 25, 2021
    • Eugen Rochko's avatar
      Add trending links (#16917) · 6e50134a
      Eugen Rochko authored
      * Add trending links
      
      * Add overriding specific links trendability
      
      * Add link type to preview cards and only trend articles
      
      Change trends review notifications from being sent every 5 minutes to being sent every 2 hours
      
      Change threshold from 5 unique accounts to 15 unique accounts
      
      * Fix tests
      6e50134a
  26. Nov 18, 2021
  27. Nov 16, 2021
    • Claire's avatar
      Fix upload of remote media with OpenStack Swift sometimes failing (#16998) · 48f8658d
      Claire authored
      Under certain conditions, files fetched from remotes trigger an error when
      being uploaded using OpenStack Swift. This is because in some cases, the
      remote server will not return a content-length, so our ResponseWithLimitAdapter
      will hold a `nil` value for `#size`, which will lead to an invalid value
      for the Content-Length header of the Swift API call.
      
      This commit fixes that by taking the size from the actually-downloaded file
      size rather than the upstream-provided Content-Length header value.
      48f8658d
  28. Nov 11, 2021
  29. Nov 06, 2021
  30. Oct 28, 2021
Loading