]> cat aescling's git repositories - mastodon.git/log
mastodon.git
4 years agoFix not to show follow button in global suggestion (#16045)
Takeshi Umeda [Fri, 16 Apr 2021 08:06:42 +0000 (17:06 +0900)]
Fix not to show follow button in global suggestion (#16045)

* Fix not to show follow button in global suggestion

* Fix style

4 years agoFix to update suggestion list after dismiss (#16044)
Takeshi Umeda [Fri, 16 Apr 2021 08:06:16 +0000 (17:06 +0900)]
Fix to update suggestion list after dismiss (#16044)

* Fix to update suggestion list after dismiss

* Change to inline

* Fix style

4 years agoFix app name, website and redirect URIs not having a maximum length (#16042)
Eugen Rochko [Thu, 15 Apr 2021 14:28:43 +0000 (16:28 +0200)]
Fix app name, website and redirect URIs not having a maximum length (#16042)

Fix app scopes not being validated

4 years agoChange option labels on edit profile page (#16041)
Eugen Rochko [Thu, 15 Apr 2021 14:28:20 +0000 (16:28 +0200)]
Change option labels on edit profile page (#16041)

4 years agoChange account ids to snowflake ids (#15844)
Claire [Thu, 15 Apr 2021 03:24:28 +0000 (05:24 +0200)]
Change account ids to snowflake ids (#15844)

Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
4 years agoAdd `policy` param to `POST /api/v1/push/subscriptions` (#16040)
Eugen Rochko [Thu, 15 Apr 2021 03:00:25 +0000 (05:00 +0200)]
Add `policy` param to `POST /api/v1/push/subscriptions` (#16040)

With possible values `all`, `followed`, `follower`, and `none`,
control from whom notifications will generate a Web Push alert

4 years agoFix an error with 'multiple mentions with same username' (#16038)
Takeshi Umeda [Wed, 14 Apr 2021 13:48:49 +0000 (22:48 +0900)]
Fix an error with 'multiple mentions with same username' (#16038)

4 years agoAdd border to 🚲 emoji (#16035)
Claire [Tue, 13 Apr 2021 21:43:51 +0000 (23:43 +0200)]
Add border to đźš˛ emoji (#16035)

4 years agoAdd HTTP header to explicitly opt out of FLoC by default (#16036)
Claire [Tue, 13 Apr 2021 21:43:41 +0000 (23:43 +0200)]
Add HTTP header to explicitly opt out of FLoC by default (#16036)

Fixes #16034

4 years agoBump nsa from git to 0.2.8 (#16033)
Eugen Rochko [Tue, 13 Apr 2021 01:45:45 +0000 (03:45 +0200)]
Bump nsa from git to 0.2.8 (#16033)

4 years agoBump eslint-plugin-promise from 4.3.1 to 5.1.0 (#16022)
dependabot[bot] [Mon, 12 Apr 2021 16:02:57 +0000 (01:02 +0900)]
Bump eslint-plugin-promise from 4.3.1 to 5.1.0 (#16022)

Bumps [eslint-plugin-promise](https://github.com/xjamundx/eslint-plugin-promise) from 4.3.1 to 5.1.0.
- [Release notes](https://github.com/xjamundx/eslint-plugin-promise/releases)
- [Changelog](https://github.com/xjamundx/eslint-plugin-promise/blob/development/CHANGELOG.md)
- [Commits](https://github.com/xjamundx/eslint-plugin-promise/commits)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump css-loader from 5.2.0 to 5.2.1 (#16029)
dependabot[bot] [Mon, 12 Apr 2021 16:01:54 +0000 (01:01 +0900)]
Bump css-loader from 5.2.0 to 5.2.1 (#16029)

Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 5.2.0 to 5.2.1.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v5.2.0...v5.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump @babel/preset-env from 7.13.12 to 7.13.15 (#16028)
dependabot[bot] [Mon, 12 Apr 2021 16:00:48 +0000 (01:00 +0900)]
Bump @babel/preset-env from 7.13.12 to 7.13.15 (#16028)

Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.13.12 to 7.13.15.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.15/packages/babel-preset-env)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump @babel/core from 7.13.14 to 7.13.15 (#16027)
dependabot[bot] [Mon, 12 Apr 2021 16:00:30 +0000 (01:00 +0900)]
Bump @babel/core from 7.13.14 to 7.13.15 (#16027)

Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.13.14 to 7.13.15.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.15/packages/babel-core)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump webpack-assets-manifest from 4.0.2 to 4.0.4 (#16025)
dependabot[bot] [Mon, 12 Apr 2021 13:11:49 +0000 (22:11 +0900)]
Bump webpack-assets-manifest from 4.0.2 to 4.0.4 (#16025)

Bumps [webpack-assets-manifest](https://github.com/webdeveric/webpack-assets-manifest) from 4.0.2 to 4.0.4.
- [Release notes](https://github.com/webdeveric/webpack-assets-manifest/releases)
- [Commits](https://github.com/webdeveric/webpack-assets-manifest/compare/v4.0.2...v4.0.4)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump eslint-plugin-react from 7.23.1 to 7.23.2 (#16030)
dependabot[bot] [Mon, 12 Apr 2021 13:09:20 +0000 (22:09 +0900)]
Bump eslint-plugin-react from 7.23.1 to 7.23.2 (#16030)

Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.23.1 to 7.23.2.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.23.1...v7.23.2)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump mini-css-extract-plugin from 1.4.0 to 1.4.1 (#16031)
dependabot[bot] [Mon, 12 Apr 2021 13:02:22 +0000 (22:02 +0900)]
Bump mini-css-extract-plugin from 1.4.0 to 1.4.1 (#16031)

Bumps [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/webpack-contrib/mini-css-extract-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/mini-css-extract-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.4.0...v1.4.1)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump @babel/plugin-transform-runtime from 7.13.10 to 7.13.15 (#16023)
dependabot[bot] [Mon, 12 Apr 2021 13:00:59 +0000 (22:00 +0900)]
Bump @babel/plugin-transform-runtime from 7.13.10 to 7.13.15 (#16023)

Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime) from 7.13.10 to 7.13.15.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.15/packages/babel-plugin-transform-runtime)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump eslint from 7.23.0 to 7.24.0 (#16018)
dependabot[bot] [Mon, 12 Apr 2021 13:00:54 +0000 (15:00 +0200)]
Bump eslint from 7.23.0 to 7.24.0 (#16018)

Bumps [eslint](https://github.com/eslint/eslint) from 7.23.0 to 7.24.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.23.0...v7.24.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump @babel/plugin-proposal-decorators from 7.13.5 to 7.13.15 (#16021)
dependabot[bot] [Mon, 12 Apr 2021 13:00:01 +0000 (22:00 +0900)]
Bump @babel/plugin-proposal-decorators from 7.13.5 to 7.13.15 (#16021)

Bumps [@babel/plugin-proposal-decorators](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-decorators) from 7.13.5 to 7.13.15.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.15/packages/babel-plugin-proposal-decorators)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump cssnano from 4.1.10 to 4.1.11 (#16020)
dependabot[bot] [Mon, 12 Apr 2021 12:59:28 +0000 (21:59 +0900)]
Bump cssnano from 4.1.10 to 4.1.11 (#16020)

Bumps [cssnano](https://github.com/cssnano/cssnano) from 4.1.10 to 4.1.11.
- [Release notes](https://github.com/cssnano/cssnano/releases)
- [Commits](https://github.com/cssnano/cssnano/compare/v4.1.10...v4.1.11)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump parallel_tests from 3.6.0 to 3.7.0 (#16024)
dependabot[bot] [Mon, 12 Apr 2021 12:37:29 +0000 (14:37 +0200)]
Bump parallel_tests from 3.6.0 to 3.7.0 (#16024)

Bumps [parallel_tests](https://github.com/grosser/parallel_tests) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/grosser/parallel_tests/releases)
- [Changelog](https://github.com/grosser/parallel_tests/blob/master/CHANGELOG.md)
- [Commits](https://github.com/grosser/parallel_tests/compare/v3.6.0...v3.7.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoChange Web Push API deliveries to use request pooling (#16014)
Eugen Rochko [Mon, 12 Apr 2021 12:25:34 +0000 (14:25 +0200)]
Change Web Push API deliveries to use request pooling (#16014)

4 years agoBump pkg-config from 1.4.5 to 1.4.6 (#16019)
dependabot[bot] [Mon, 12 Apr 2021 12:08:06 +0000 (14:08 +0200)]
Bump pkg-config from 1.4.5 to 1.4.6 (#16019)

Bumps [pkg-config](https://github.com/ruby-gnome/pkg-config) from 1.4.5 to 1.4.6.
- [Release notes](https://github.com/ruby-gnome/pkg-config/releases)
- [Changelog](https://github.com/ruby-gnome/pkg-config/blob/master/NEWS)
- [Commits](https://github.com/ruby-gnome/pkg-config/compare/1.4.5...1.4.6)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump doorkeeper from 5.5.0 to 5.5.1 (#16016)
dependabot[bot] [Mon, 12 Apr 2021 12:00:55 +0000 (14:00 +0200)]
Bump doorkeeper from 5.5.0 to 5.5.1 (#16016)

Bumps [doorkeeper](https://github.com/doorkeeper-gem/doorkeeper) from 5.5.0 to 5.5.1.
- [Release notes](https://github.com/doorkeeper-gem/doorkeeper/releases)
- [Changelog](https://github.com/doorkeeper-gem/doorkeeper/blob/main/CHANGELOG.md)
- [Commits](https://github.com/doorkeeper-gem/doorkeeper/compare/v5.5.0...v5.5.1)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump nokogiri from 1.11.2 to 1.11.3 (#16017)
dependabot[bot] [Mon, 12 Apr 2021 12:00:30 +0000 (14:00 +0200)]
Bump nokogiri from 1.11.2 to 1.11.3 (#16017)

Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.11.2 to 1.11.3.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.11.2...v1.11.3)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump sidekiq from 6.2.0 to 6.2.1 (#16026)
dependabot[bot] [Mon, 12 Apr 2021 12:00:06 +0000 (14:00 +0200)]
Bump sidekiq from 6.2.0 to 6.2.1 (#16026)

Bumps [sidekiq](https://github.com/mperham/sidekiq) from 6.2.0 to 6.2.1.
- [Release notes](https://github.com/mperham/sidekiq/releases)
- [Changelog](https://github.com/mperham/sidekiq/blob/master/Changes.md)
- [Commits](https://github.com/mperham/sidekiq/compare/v6.2.0...v6.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoAdd cold-start follow recommendations (#15945)
Eugen Rochko [Mon, 12 Apr 2021 10:37:14 +0000 (12:37 +0200)]
Add cold-start follow recommendations (#15945)

4 years agoRemove dependency on pluck_each gem (#16012)
Eugen Rochko [Mon, 12 Apr 2021 01:35:58 +0000 (03:35 +0200)]
Remove dependency on pluck_each gem (#16012)

4 years agoRemove spam check and dependency on nilsimsa gem (#16011)
Eugen Rochko [Sun, 11 Apr 2021 09:22:50 +0000 (11:22 +0200)]
Remove spam check and dependency on nilsimsa gem (#16011)

4 years agoChange multiple mentions with same username to render with domain (#15718)
Eugen Rochko [Sat, 10 Apr 2021 09:51:02 +0000 (11:51 +0200)]
Change multiple mentions with same username to render with domain (#15718)

Fix #15506

4 years agoBump devise-two-factor from git to 4.0.0 (#15987)
Eugen Rochko [Sat, 10 Apr 2021 09:50:41 +0000 (11:50 +0200)]
Bump devise-two-factor from git to 4.0.0 (#15987)

4 years agoUpgrade Ruby to 2.7.3 (#16004)
Daigo 3 Dango [Fri, 9 Apr 2021 00:31:36 +0000 (00:31 +0000)]
Upgrade Ruby to 2.7.3 (#16004)

* Upgrade Ruby to 2.7.3

https://www.ruby-lang.org/en/news/2021/04/05/ruby-2-7-3-released/
includes security fixes to
- CVE-2021-28965: XML round-trip vulnerability in REXML
- CVE-2021-28966: Path traversal in Tempfile on Windows

* Update rexml to 3.2.5

https://www.ruby-lang.org/en/news/2021/04/05/xml-round-trip-vulnerability-in-rexml-cve-2021-28965/

4 years agoFix autoloading deprecation warnings from Rails 6 (#16010)
Eugen Rochko [Fri, 9 Apr 2021 00:31:20 +0000 (02:31 +0200)]
Fix autoloading deprecation warnings from Rails 6 (#16010)

4 years agoFix deprecation warning for Sidekiq web session secret (#16009)
Eugen Rochko [Fri, 9 Apr 2021 00:31:11 +0000 (02:31 +0200)]
Fix deprecation warning for Sidekiq web session secret (#16009)

4 years agoUpdate copyright year (#16003)
Sean [Tue, 6 Apr 2021 09:38:21 +0000 (17:38 +0800)]
Update copyright year (#16003)

4 years agoFix SidekiqProcessCheck checking for a queue name that isn't used in Mastodon (#16002)
Claire [Mon, 5 Apr 2021 21:41:37 +0000 (23:41 +0200)]
Fix SidekiqProcessCheck checking for a queue name that isn't used in Mastodon (#16002)

4 years agoBump redis from 3.0.2 to 3.1.0 (#15998)
dependabot[bot] [Mon, 5 Apr 2021 13:19:57 +0000 (22:19 +0900)]
Bump redis from 3.0.2 to 3.1.0 (#15998)

Bumps [redis](https://github.com/NodeRedis/node-redis) from 3.0.2 to 3.1.0.
- [Release notes](https://github.com/NodeRedis/node-redis/releases)
- [Changelog](https://github.com/NodeRedis/node-redis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/NodeRedis/node-redis/compare/v3.0.2...v3.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump classnames from 2.2.6 to 2.3.1 (#16000)
dependabot[bot] [Mon, 5 Apr 2021 13:17:46 +0000 (22:17 +0900)]
Bump classnames from 2.2.6 to 2.3.1 (#16000)

Bumps [classnames](https://github.com/JedWatson/classnames) from 2.2.6 to 2.3.1.
- [Release notes](https://github.com/JedWatson/classnames/releases)
- [Changelog](https://github.com/JedWatson/classnames/blob/master/HISTORY.md)
- [Commits](https://github.com/JedWatson/classnames/commits)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoFix SVG files not being correctly included in templates (#16001)
Claire [Mon, 5 Apr 2021 11:05:49 +0000 (13:05 +0200)]
Fix SVG files not being correctly included in templates (#16001)

In Rails 6.1, raw file inclusion in templates have to be explicitly marked as
HTML-safe, otherwise it's rendered as text.

4 years agoBump rubocop from 1.12.0 to 1.12.1 (#15996)
dependabot[bot] [Mon, 5 Apr 2021 10:10:40 +0000 (19:10 +0900)]
Bump rubocop from 1.12.0 to 1.12.1 (#15996)

Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.12.0...v1.12.1)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump webpack-assets-manifest from 4.0.1 to 4.0.2 (#15999)
dependabot[bot] [Mon, 5 Apr 2021 10:10:18 +0000 (19:10 +0900)]
Bump webpack-assets-manifest from 4.0.1 to 4.0.2 (#15999)

Bumps [webpack-assets-manifest](https://github.com/webdeveric/webpack-assets-manifest) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/webdeveric/webpack-assets-manifest/releases)
- [Commits](https://github.com/webdeveric/webpack-assets-manifest/compare/v4.0.1...v4.0.2)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump @testing-library/react from 11.2.5 to 11.2.6 (#15997)
dependabot[bot] [Mon, 5 Apr 2021 10:09:50 +0000 (19:09 +0900)]
Bump @testing-library/react from 11.2.5 to 11.2.6 (#15997)

Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 11.2.5 to 11.2.6.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/react-testing-library/compare/v11.2.5...v11.2.6)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoAdd system checks to dashboard in admin UI (#15989)
Eugen Rochko [Sat, 3 Apr 2021 12:12:30 +0000 (14:12 +0200)]
Add system checks to dashboard in admin UI (#15989)

4 years agoChange health check (#15988)
Eugen Rochko [Sat, 3 Apr 2021 00:39:04 +0000 (02:39 +0200)]
Change health check (#15988)

4 years agoFix crash in old browsers (#15985)
Claire [Wed, 31 Mar 2021 22:00:12 +0000 (00:00 +0200)]
Fix crash in old browsers (#15985)

Fixes #15984

4 years agoFix DB connection pool settings in CLI (#15983)
abcang [Wed, 31 Mar 2021 15:46:17 +0000 (00:46 +0900)]
Fix DB connection pool settings in CLI (#15983)

4 years agoBump react-select from 4.0.2 to 4.3.0 (#15969)
dependabot[bot] [Wed, 31 Mar 2021 02:39:58 +0000 (11:39 +0900)]
Bump react-select from 4.0.2 to 4.3.0 (#15969)

Bumps [react-select](https://github.com/JedWatson/react-select) from 4.0.2 to 4.3.0.
- [Release notes](https://github.com/JedWatson/react-select/releases)
- [Changelog](https://github.com/JedWatson/react-select/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/JedWatson/react-select/compare/react-select@4.0.2...react-select@4.3.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump eslint from 7.22.0 to 7.23.0 (#15971)
dependabot[bot] [Wed, 31 Mar 2021 01:46:57 +0000 (10:46 +0900)]
Bump eslint from 7.22.0 to 7.23.0 (#15971)

Bumps [eslint](https://github.com/eslint/eslint) from 7.22.0 to 7.23.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.22.0...v7.23.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump @babel/preset-react from 7.12.13 to 7.13.13 (#15965)
dependabot[bot] [Tue, 30 Mar 2021 22:47:28 +0000 (07:47 +0900)]
Bump @babel/preset-react from 7.12.13 to 7.13.13 (#15965)

Bumps [@babel/preset-react](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-react) from 7.12.13 to 7.13.13.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.13/packages/babel-preset-react)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump react-redux from 7.2.2 to 7.2.3 (#15963)
dependabot[bot] [Tue, 30 Mar 2021 16:42:42 +0000 (01:42 +0900)]
Bump react-redux from 7.2.2 to 7.2.3 (#15963)

Bumps [react-redux](https://github.com/reduxjs/react-redux) from 7.2.2 to 7.2.3.
- [Release notes](https://github.com/reduxjs/react-redux/releases)
- [Changelog](https://github.com/reduxjs/react-redux/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reduxjs/react-redux/compare/v7.2.2...v7.2.3)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump @babel/core from 7.13.10 to 7.13.14 (#15979)
dependabot[bot] [Tue, 30 Mar 2021 15:55:59 +0000 (00:55 +0900)]
Bump @babel/core from 7.13.10 to 7.13.14 (#15979)

Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.13.10 to 7.13.14.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.14/packages/babel-core)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump aws-sdk-s3 from 1.92.0 to 1.93.0 (#15973)
dependabot[bot] [Tue, 30 Mar 2021 14:58:23 +0000 (23:58 +0900)]
Bump aws-sdk-s3 from 1.92.0 to 1.93.0 (#15973)

Bumps [aws-sdk-s3](https://github.com/aws/aws-sdk-ruby) from 1.92.0 to 1.93.0.
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-s3/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-ruby/commits)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump eslint-plugin-react from 7.22.0 to 7.23.1 (#15967)
dependabot[bot] [Tue, 30 Mar 2021 14:57:41 +0000 (23:57 +0900)]
Bump eslint-plugin-react from 7.22.0 to 7.23.1 (#15967)

Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.22.0 to 7.23.1.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.22.0...v7.23.1)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump rubocop from 1.11.0 to 1.12.0 (#15970)
dependabot[bot] [Tue, 30 Mar 2021 14:49:45 +0000 (23:49 +0900)]
Bump rubocop from 1.11.0 to 1.12.0 (#15970)

Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.11.0...v1.12.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump parallel_tests from 3.5.2 to 3.6.0 (#15968)
dependabot[bot] [Tue, 30 Mar 2021 14:48:30 +0000 (23:48 +0900)]
Bump parallel_tests from 3.5.2 to 3.6.0 (#15968)

Bumps [parallel_tests](https://github.com/grosser/parallel_tests) from 3.5.2 to 3.6.0.
- [Release notes](https://github.com/grosser/parallel_tests/releases)
- [Changelog](https://github.com/grosser/parallel_tests/blob/master/CHANGELOG.md)
- [Commits](https://github.com/grosser/parallel_tests/compare/v3.5.2...v3.6.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump fabrication from 2.21.1 to 2.22.0 (#15966)
dependabot[bot] [Tue, 30 Mar 2021 14:47:06 +0000 (23:47 +0900)]
Bump fabrication from 2.21.1 to 2.22.0 (#15966)

Bumps [fabrication](https://github.com/paulelliott/fabrication) from 2.21.1 to 2.22.0.
- [Release notes](https://github.com/paulelliott/fabrication/releases)
- [Changelog](https://github.com/paulelliott/fabrication/blob/master/Changelog.markdown)
- [Commits](https://github.com/paulelliott/fabrication/commits)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump webmock from 3.12.1 to 3.12.2 (#15964)
dependabot[bot] [Tue, 30 Mar 2021 14:44:51 +0000 (23:44 +0900)]
Bump webmock from 3.12.1 to 3.12.2 (#15964)

Bumps [webmock](https://github.com/bblimke/webmock) from 3.12.1 to 3.12.2.
- [Release notes](https://github.com/bblimke/webmock/releases)
- [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bblimke/webmock/compare/v3.12.1...v3.12.2)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump @testing-library/jest-dom from 5.11.9 to 5.11.10 (#15972)
dependabot[bot] [Tue, 30 Mar 2021 14:43:15 +0000 (23:43 +0900)]
Bump @testing-library/jest-dom from 5.11.9 to 5.11.10 (#15972)

Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.11.9 to 5.11.10.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.11.9...v5.11.10)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump mini-css-extract-plugin from 1.3.9 to 1.4.0 (#15976)
dependabot[bot] [Tue, 30 Mar 2021 14:42:17 +0000 (23:42 +0900)]
Bump mini-css-extract-plugin from 1.3.9 to 1.4.0 (#15976)

Bumps [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) from 1.3.9 to 1.4.0.
- [Release notes](https://github.com/webpack-contrib/mini-css-extract-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/mini-css-extract-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.3.9...v1.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump @babel/preset-env from 7.13.10 to 7.13.12 (#15975)
dependabot[bot] [Tue, 30 Mar 2021 14:40:18 +0000 (23:40 +0900)]
Bump @babel/preset-env from 7.13.10 to 7.13.12 (#15975)

Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.13.10 to 7.13.12.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.12/packages/babel-preset-env)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump css-loader from 5.1.3 to 5.2.0 (#15961)
dependabot[bot] [Tue, 30 Mar 2021 14:38:27 +0000 (23:38 +0900)]
Bump css-loader from 5.1.3 to 5.2.0 (#15961)

Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 5.1.3 to 5.2.0.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v5.1.3...v5.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agobuild: install shared-mime-info in Dockerfile (#15978)
Mashiro [Tue, 30 Mar 2021 08:10:04 +0000 (16:10 +0800)]
build: install shared-mime-info in Dockerfile (#15978)

4 years agoBump pghero from 2.8.0 to 2.8.1 (#15962)
dependabot[bot] [Mon, 29 Mar 2021 13:17:10 +0000 (15:17 +0200)]
Bump pghero from 2.8.0 to 2.8.1 (#15962)

Bumps [pghero](https://github.com/ankane/pghero) from 2.8.0 to 2.8.1.
- [Release notes](https://github.com/ankane/pghero/releases)
- [Changelog](https://github.com/ankane/pghero/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ankane/pghero/compare/v2.8.0...v2.8.1)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump rails from 6.1.3 to 6.1.3.1 (#15960)
dependabot[bot] [Mon, 29 Mar 2021 05:39:37 +0000 (14:39 +0900)]
Bump rails from 6.1.3 to 6.1.3.1 (#15960)

Bumps [rails](https://github.com/rails/rails) from 6.1.3 to 6.1.3.1.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v6.1.3...v6.1.3.1)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoFix /admin/tags/:id crashing since Rails 6.1 update (#15953)
Claire [Fri, 26 Mar 2021 17:36:16 +0000 (18:36 +0100)]
Fix /admin/tags/:id crashing since Rails 6.1 update (#15953)

Raw SQL passed to `pluck` now has to be explicitly marked as SQL via
Arel.sql, see https://github.com/rails/rails/pull/27947

4 years agoAdd warning in admin dashboard if some required queues are not handled (#15954)
Claire [Fri, 26 Mar 2021 17:22:54 +0000 (18:22 +0100)]
Add warning in admin dashboard if some required queues are not handled (#15954)

4 years agoAdd `email` param to `POST /api/v1/emails/confirmations` (#15949)
Eugen Rochko [Thu, 25 Mar 2021 01:46:13 +0000 (02:46 +0100)]
Add `email` param to `POST /api/v1/emails/confirmations` (#15949)

Allow changing e-mail as long as the account is unconfirmed

4 years agoAdd transition to media modal background (#15843)
Marcin Mikołajczak [Wed, 24 Mar 2021 12:51:32 +0000 (13:51 +0100)]
Add transition to media modal background (#15843)

* Add transition to media modal background

* use reduceMotion

* Move background color transition into css

Signed-off-by: marcin mikołajczak <me@mkljczk.pl>
4 years agotootctl emoji import: case insensitive duplicate check (#15738)
Stanislas [Wed, 24 Mar 2021 09:55:16 +0000 (10:55 +0100)]
tootctl emoji import: case insensitive duplicate check (#15738)

4 years agoBump brakeman from 4.10.1 to 5.0.0 (#15656)
dependabot[bot] [Wed, 24 Mar 2021 09:53:23 +0000 (10:53 +0100)]
Bump brakeman from 4.10.1 to 5.0.0 (#15656)

Bumps [brakeman](https://github.com/presidentbeef/brakeman) from 4.10.1 to 5.0.0.
- [Release notes](https://github.com/presidentbeef/brakeman/releases)
- [Changelog](https://github.com/presidentbeef/brakeman/blob/main/CHANGES.md)
- [Commits](https://github.com/presidentbeef/brakeman/compare/v4.10.1...v5.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agotemplates/systemd/mastodon: enable sandbox mode (#15937)
Yurii Izorkin [Wed, 24 Mar 2021 09:46:13 +0000 (12:46 +0300)]
templates/systemd/mastodon: enable sandbox mode (#15937)

4 years agoUpdate Mastodon to Rails 6.1 (#15910)
Claire [Wed, 24 Mar 2021 09:44:31 +0000 (10:44 +0100)]
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 agoChange mastodon:setup to not call assets:precompile in docker (#13942)
Claire [Wed, 24 Mar 2021 09:37:24 +0000 (10:37 +0100)]
Change mastodon:setup to not call assets:precompile in docker (#13942)

It appears assets are built during image build, and they shouldn't need
to be rebuilt, since we now have reproducible builds.

4 years agoFix Mastodon not understanding as:Public and Public (#15948)
Claire [Wed, 24 Mar 2021 09:19:40 +0000 (10:19 +0100)]
Fix Mastodon not understanding as:Public and Public (#15948)

Fixes #5551

4 years agoFix compose form behavior in mobile view (#15555)
Claire [Wed, 24 Mar 2021 09:19:07 +0000 (10:19 +0100)]
Fix compose form behavior in mobile view (#15555)

* Fix ComposeForm being mounted twice in mobile view

Fixes #13094

* Fix compose form focus and pre-selection behavior in mobile view

* Split _updateFocusAndSelection out of componentDidUpdate

4 years agoSwitch from deprecated ClusterWS/cws to ws package (#15932)
Claire [Wed, 24 Mar 2021 08:37:41 +0000 (09:37 +0100)]
Switch from deprecated ClusterWS/cws to ws package (#15932)

* Switch from deprecated ClusterWS/cws to ws package

Fixes #15184

Co-authored-by: Edho Arief <me@nanaya.pro>
* Make bufferutil and utf-8-validate optional dependencies

Co-authored-by: Edho Arief <me@nanaya.pro>
4 years agoBump react-select from 3.2.0 to 4.0.2 (#15624)
dependabot[bot] [Mon, 22 Mar 2021 06:41:47 +0000 (15:41 +0900)]
Bump react-select from 3.2.0 to 4.0.2 (#15624)

* Bump react-select from 3.2.0 to 4.0.2

Bumps [react-select](https://github.com/JedWatson/react-select) from 3.2.0 to 4.0.2.
- [Release notes](https://github.com/JedWatson/react-select/releases)
- [Changelog](https://github.com/JedWatson/react-select/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/JedWatson/react-select/compare/react-select@3.2.0...react-select@4.0.2)

Signed-off-by: dependabot[bot] <support@github.com>
* Add cacheKey to NonceProvider for react-select

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>
4 years agoBump aws-sdk-s3 from 1.91.0 to 1.92.0 (#15938)
dependabot[bot] [Mon, 22 Mar 2021 06:39:39 +0000 (07:39 +0100)]
Bump aws-sdk-s3 from 1.91.0 to 1.92.0 (#15938)

Bumps [aws-sdk-s3](https://github.com/aws/aws-sdk-ruby) from 1.91.0 to 1.92.0.
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-s3/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-ruby/commits)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump css-loader from 5.1.2 to 5.1.3 (#15940)
dependabot[bot] [Mon, 22 Mar 2021 06:39:19 +0000 (07:39 +0100)]
Bump css-loader from 5.1.2 to 5.1.3 (#15940)

Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 5.1.2 to 5.1.3.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v5.1.2...v5.1.3)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump rspec-rails from 5.0.0 to 5.0.1 (#15939)
dependabot[bot] [Mon, 22 Mar 2021 06:38:54 +0000 (07:38 +0100)]
Bump rspec-rails from 5.0.0 to 5.0.1 (#15939)

Bumps [rspec-rails](https://github.com/rspec/rspec-rails) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/rspec/rspec-rails/releases)
- [Changelog](https://github.com/rspec/rspec-rails/blob/main/Changelog.md)
- [Commits](https://github.com/rspec/rspec-rails/compare/v5.0.0...v5.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump ox from 2.14.3 to 2.14.4 (#15941)
dependabot[bot] [Mon, 22 Mar 2021 06:38:23 +0000 (07:38 +0100)]
Bump ox from 2.14.3 to 2.14.4 (#15941)

Bumps [ox](https://github.com/ohler55/ox) from 2.14.3 to 2.14.4.
- [Release notes](https://github.com/ohler55/ox/releases)
- [Changelog](https://github.com/ohler55/ox/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/ohler55/ox/compare/v2.14.3...v2.14.4)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump sidekiq from 6.1.3 to 6.2.0 (#15943)
dependabot[bot] [Mon, 22 Mar 2021 06:37:51 +0000 (07:37 +0100)]
Bump sidekiq from 6.1.3 to 6.2.0 (#15943)

Bumps [sidekiq](https://github.com/mperham/sidekiq) from 6.1.3 to 6.2.0.
- [Release notes](https://github.com/mperham/sidekiq/releases)
- [Changelog](https://github.com/mperham/sidekiq/blob/master/Changes.md)
- [Commits](https://github.com/mperham/sidekiq/compare/v6.1.3...v6.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump blurhash from 0.1.4 to 0.1.5 (#15942)
dependabot[bot] [Mon, 22 Mar 2021 06:36:13 +0000 (07:36 +0100)]
Bump blurhash from 0.1.4 to 0.1.5 (#15942)

Bumps [blurhash](https://github.com/Gargron/blurhash) from 0.1.4 to 0.1.5.
- [Release notes](https://github.com/Gargron/blurhash/releases)
- [Commits](https://github.com/Gargron/blurhash/commits/v0.1.5)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump sidekiq-unique-jobs from 7.0.4 to 7.0.7 (#15944)
dependabot[bot] [Mon, 22 Mar 2021 06:35:46 +0000 (07:35 +0100)]
Bump sidekiq-unique-jobs from 7.0.4 to 7.0.7 (#15944)

Bumps [sidekiq-unique-jobs](https://github.com/mhenrixon/sidekiq-unique-jobs) from 7.0.4 to 7.0.7.
- [Release notes](https://github.com/mhenrixon/sidekiq-unique-jobs/releases)
- [Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v7.0.4...v7.0.7)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoDocker: Use precompiled jemalloc, format, apply hadolint suggestions (#10823)
Sandro [Sat, 20 Mar 2021 20:21:57 +0000 (21:21 +0100)]
Docker: Use precompiled jemalloc, format, apply hadolint suggestions (#10823)

* Format, apply hadolint suggestions, little nitpicks

* Use pre compiled jemalloc

* Use tini from package repository

4 years agoFix brakeman warning (#15870)
Claire [Fri, 19 Mar 2021 22:48:59 +0000 (23:48 +0100)]
Fix brakeman warning (#15870)

As far as I understand, the brakeman warning was a false-positive as
`content_tag` properly escapes untrusted HTML. Furthermore, the interpolated
string values are built from the â€śusername” part of accounts, which is
restricted to a small subset of ASCII that precludes any XML entity or HTML
code.

This proposed change should be functionally equivalent to the current code,
however it is slightly more robust, it's more idiomatic, and Brakeman will
stop complaining about it.

4 years agoBypass MX validation for explicitly allowed domains (#15930)
Claire [Fri, 19 Mar 2021 22:48:47 +0000 (23:48 +0100)]
Bypass MX validation for explicitly allowed domains (#15930)

* Bypass MX validation for explicitly allowed domains

This spares some lookups and prevent issues in some edge cases with
local domains.

* Add tests

* Fix test

4 years agoFix push notification title for polls (#15931)
Claire [Fri, 19 Mar 2021 22:47:31 +0000 (23:47 +0100)]
Fix push notification title for polls (#15931)

4 years agoFixing the hero widget (#15926)
Claire [Fri, 19 Mar 2021 19:23:32 +0000 (20:23 +0100)]
Fixing the hero widget (#15926)

* Removing last-child padding conflicts with light theme in hero widget

* Add missing background color to widget

* Reset widget.scss to default

* Hope this works

Co-authored-by: koyu <me@koyu.space>
4 years agoFix custom CSS when CDN_HOST is set (#15927)
Claire [Fri, 19 Mar 2021 19:23:08 +0000 (20:23 +0100)]
Fix custom CSS when CDN_HOST is set (#15927)

4 years agoAdd missing push notification title for polls (#15929)
Claire [Fri, 19 Mar 2021 19:22:49 +0000 (20:22 +0100)]
Add missing push notification title for polls (#15929)

4 years agoAdd missing `en.notification_mailer.status.subject` (#15564)
Marcin Mikołajczak [Fri, 19 Mar 2021 16:15:59 +0000 (17:15 +0100)]
Add missing `en.notification_mailer.status.subject` (#15564)

* Add missing `en.notification_mailer.status.subject`

* Update en.yml

4 years agoWIP (#15222)
Eugen Rochko [Fri, 19 Mar 2021 16:15:36 +0000 (17:15 +0100)]
WIP (#15222)

4 years agoImprove account counters handling (#15913)
Claire [Fri, 19 Mar 2021 12:14:57 +0000 (13:14 +0100)]
Improve account counters handling (#15913)

* Improve account counters handling

* Use ActiveRecord::Base::sanitize_sql to pass values instead of interpolating them

Keep using string interpolation for `key` as it is safe and using
“ActiveRecord::Base::sanitize_sql_hash_for_assignment” would require stitching
bits of SQL in a way that is not more easily checked for safety.

* Add migration hook to catch PostgreSQL versions earlier than 9.5

4 years agoRemove MySQL-specific code from Mastodon::MigrationHelpers (#15924)
Claire [Fri, 19 Mar 2021 12:14:40 +0000 (13:14 +0100)]
Remove MySQL-specific code from Mastodon::MigrationHelpers (#15924)

Mastodon::MigrationHelpers has been forked from Gitlab a long time ago, but
Mastodon has never supported using a MySQL database.

Removing MySQL support from Mastodon::MigrationHelpers makes it a little easier
to maintain. In particular, it removes code that would need updating with
Rails 6.

4 years agoChange deduplication order of tootctl maintenance fix-duplicates (#15923)
Claire [Fri, 19 Mar 2021 10:07:56 +0000 (11:07 +0100)]
Change deduplication order of tootctl maintenance fix-duplicates (#15923)

Hopefully fixes #15922

Also update support up to latest database schema version

4 years agoFurther preparation for Rails 6 (#15916)
Claire [Fri, 19 Mar 2021 01:45:34 +0000 (02:45 +0100)]
Further preparation for Rails 6 (#15916)

* Use ActiveRecord::Result#to_ary instead of deprecated to_hash

They do the same thing, and to_hash has been removed from Rails 6.1

* Explicitly name polymorphic indexes to workaround a bug in Rails 6.1

cf. https://github.com/rails/rails/issues/41693

* Fix incorrect usage of â€śforeign_key” in migration script

* Use `ActiveModel::Errors#delete` instead of deprecated clear method

* Fix link headers tests on Rails 6.1

Rails 6.1 adds values to the Link header by default, thus it is not a
LinkHeader object anymore. Fix the test to parse the Link header instead
of assuming it is a LinkHeader.

4 years agoAdd option to opt out of unread notification markers (#15842)
Claire [Fri, 19 Mar 2021 01:44:57 +0000 (02:44 +0100)]
Add option to opt out of unread notification markers (#15842)

Fixes #15133

4 years agoUse more robust hook for loading timestamp_id function into database (#15919)
Claire [Fri, 19 Mar 2021 01:43:13 +0000 (02:43 +0100)]
Use more robust hook for loading timestamp_id function into database (#15919)