Commit Graph

678 Commits (b229fa7916c934a79430f066f2bf21c095bfb31c)

Author SHA1 Message Date
Nick Schonning 96a8aa32ad Enable Rubocop Style/FrozenStringLiteralComment () 2023-07-12 09:47:08 +02:00
Claire 784f7fb497 Bump version to v4.1.4 () 2023-07-07 19:42:03 +02:00
Claire d979d9fe49 Fix branding:generate_app_icons failing because of disallowed ICO coder () 2023-07-07 18:10:00 +02:00
Claire 8f62bea002 Bump version to v4.1.3 () 2023-07-06 15:14:42 +02:00
Claire 3445bdfa45 Merge pull request from GHSA-9928-3cp5-93fm
* Fix attachments getting processed despite failing content-type validation

* Add a restrictive ImageMagick security policy tailored for Mastodon

* Fix misdetection of MP3 files with large cover art

* Reject unprocessable audio/video files instead of keeping them unchanged
2023-07-06 15:05:05 +02:00
Claire 96dcfa9745 Merge pull request from GHSA-ccm4-vgcc-73hp
* Tighten allowed HTML in oEmbed-based preview cards

* Sanitize preview cards at render time

* Add `sandbox` attribute to preview card iframes
2023-07-06 15:03:33 +02:00
Claire 5154acdb9f Add hardened headers to user-uploaded files () 2023-07-06 14:31:37 +02:00
Claire 4e861795a4 Add translate="no" to outgoing mentions and links () 2023-06-20 18:10:19 +02:00
Matt Jankowski 61a9504522 Add coverage for `CLI::Feeds` command () 2023-06-10 18:37:36 +02:00
Matt Jankowski 4d21dbfa23 Add coverage for `CLI::Cache` command () 2023-06-10 18:36:09 +02:00
Nick Schonning ef344388c5 Autofix Rubocop Regex Style rules ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-06-06 14:50:51 +02:00
Jed Fox e24a587f84 Consistently use middle dot (·) instead of bullet (•) to separate items () 2023-06-02 19:58:18 +02:00
Matt Jankowski a32c2b694f Extract verify options method in search cli () 2023-06-01 14:35:05 +02:00
Matt Jankowski 13dffb206b Add CLI area progress bar helper () 2023-06-01 14:31:24 +02:00
Matt Jankowski d59a2b5b8e Use thor methods instead of tty prompt in maintenance cli () 2023-05-31 19:40:16 +02:00
Matt Jankowski 8cb57d28a6 Fix FormatStringToken cop in CLI () 2023-05-30 16:21:53 +02:00
Matt Jankowski 87ff2507fc Fix Rails/WhereExists cop in CLI () 2023-05-30 16:09:57 +02:00
Matt Jankowski dccd813e6c Extract helper method for error report in cli/accounts command () 2023-05-30 16:09:15 +02:00
Matt Jankowski 35e1c074e3 Increment index which was previously not used in maintenance CLI loop () 2023-05-30 16:08:47 +02:00
Matt Jankowski 9ee55e469c Consistent usage of CLI `dry_run?` method () 2023-05-30 16:07:44 +02:00
Matt Jankowski 95b54f5ad7 Extract methods for user de-duping in maintenance CLI () 2023-05-26 09:42:16 +02:00
Claire 245a4eac89 Improve various queries against account domains () 2023-05-25 09:27:16 +02:00
Matt Jankowski f97a429d20 Add CLI Base class for command line code () 2023-05-24 11:55:40 +02:00
Matt Jankowski eada85f715 Move the mastodon/*_cli files to mastodon/cli/* () 2023-05-23 16:08:26 +02:00
Nick Schonning c4f2b1e86a Fix minor typos in comments and spec names () 2023-05-19 17:13:29 +02:00
Daniel M Brasil f7b92ed93d Add ability to block sign-ups from IP using the CLI () 2023-05-09 14:46:00 +02:00
Daniel M Brasil 1b1b940202 Fix uncaught `ActiveRecord::StatementInvalid` in Mastodon::IpBlocksCLI () 2023-05-09 14:45:47 +02:00
Renaud Chaput 5569c64150 Add version suffixes to nightly & edge image builds () 2023-05-04 13:45:39 +02:00
Nick Schonning 833076d6bf Bump rubocop-rails 2.19.1 with update .rubocop_todo.yml () 2023-05-04 11:56:24 +02:00
Nick Schonning 2f2c8f671b Autofix Rubocop Style/HashSyntax () 2023-05-04 05:54:26 +02:00
Matt Jankowski e8537a3a01 Fix Performance/CollectionLiteralInLoop cop () 2023-05-04 05:33:55 +02:00
Matt Jankowski c886971abb Fix Rails/DeprecatedActiveModelErrorsMethods cop () 2023-05-02 18:39:22 +02:00
Matt Jankowski 621e53f8fc Fix Performance/Sum cop () 2023-05-02 16:10:40 +02:00
Claire 6d57b317bc Fix `tootctl accounts cull` crashing when encountering a domain resolving to a private address () 2023-05-02 15:10:09 +02:00
Matt Jankowski 182bb4595f Fix Lint/DuplicateBranch cop () 2023-05-02 12:57:11 +02:00
Daniel M Brasil 2ec45549cf Fix `tootctl accounts approve --number N` not aproving N earliest registrations () 2023-04-30 06:50:58 +02:00
Matt Jankowski 8a813615b0 Fix Rails/Output cop () 2023-04-30 06:48:16 +02:00
Matt Jankowski 16e08228df Fix Rails/SquishedSQLHeredocs cop () 2023-04-30 06:43:50 +02:00
Daniel M Brasil 84c6f7a1a6 Fix `tootctl accounts create --reattach --force` not working with confirmed accounts () 2023-04-27 10:15:45 +02:00
Claire df83ca4e25 Fix crash in `tootctl accounts create --reattach --force` () 2023-04-23 22:29:31 +02:00
Daniel M Brasil e9039513a0 Fix uncaught ActiveRecord::StatementInvalid exception in `Mastodon::AccountsCLI#approve` () 2023-04-20 10:57:11 +02:00
Eugen Rochko 3ca64638d4 Refactor `Cache-Control` and `Vary` definitions () 2023-04-19 16:07:29 +02:00
Daniel M Brasil ca865e1086 Fix email confirmation skip option in `tootctl accounts modify USERNAME --email EMAIL --confirm` () 2023-04-18 09:51:24 +02:00
Daniel M Brasil ab79bac584 tootctl: add --approve option to tootctl accounts create () 2023-04-14 14:41:15 +02:00
Matt Jankowski c5f965afcf Clean up the post deployment migration generator () 2023-04-11 11:25:29 +02:00
Claire f91018b5c2 Bump version to v4.1.2 () 2023-04-07 09:01:57 +02:00
Claire e03f9b38c5 Change root Chewy strategy to emit a warning instead of erroring out in production mode () 2023-04-03 15:05:39 +02:00
Alison Wheeler 218e88df65 Update redis_config.rb to remove warning message () 2023-04-02 06:49:37 +02:00
Eugen Rochko c75fccf033 Change user settings to be stored in a more optimal way ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-03-30 14:44:00 +02:00
Claire 092058da27 Add migration tests for user mail notification settings () 2023-03-27 17:54:42 +02:00