]> cat aescling's git repositories - mastodon.git/log
mastodon.git
5 years agofix: make Procfile compatible with herokuish (#12685)
Aurelia [Sat, 29 Aug 2020 17:00:30 +0000 (19:00 +0200)]
fix: make Procfile compatible with herokuish (#12685)

Co-authored-by: Aurelia <aurelia@serenitylabs.cloud>
5 years agoIntroduce ApplicationController#cache_collection_paginated_by_id (#14677)
Akihiko Odaki [Fri, 28 Aug 2020 10:31:56 +0000 (19:31 +0900)]
Introduce ApplicationController#cache_collection_paginated_by_id (#14677)

* Replace incorrect use of distinct with group

Some uses of ActiveRecord::QueryMethods#distinct pass field names but they
are incorrect for the current version of Rails.

ActiveRecord::QueryMethods#group provides the expected behavior and
benefits performance. See commit 6da24aad4cafdef8d8a2c92bac2002a5fc2fe9c8.

* Introduce ApplicationController#cache_collection_paginated_by_id

ApplicationController#cache_collection_paginated_by_id fuses
ApplicationController#cache_collection and Paginable.paginate_by_id.

An advantage of this method is that it prevents from modifying scope which
Paginable.paginate_by_id may provide.
ApplicationController#cache_collection always return an array and there
is no possibility of the scope modification. It is also clear for a
programmer, considering the implication of "cache".

This method can also emit more efficient queries by using
Cacheable.cache_ids before calling Paginable.paginate_by_id.

5 years agoEagerly load statuses with the main query in Api::V1::BookmarksController (#14674)
Akihiko Odaki [Fri, 28 Aug 2020 10:30:23 +0000 (19:30 +0900)]
Eagerly load statuses with the main query in Api::V1::BookmarksController (#14674)

This is same with commit 552e886b648faa2a2229d86c7fd9abc8bb5ff99c except
that it was for Api::V1::FavouritesController while this is for
Api::V1::BookmarksController.

5 years agoReplace incorrect use of distinct with group (#14675)
Akihiko Odaki [Fri, 28 Aug 2020 10:29:59 +0000 (19:29 +0900)]
Replace incorrect use of distinct with group (#14675)

Some uses of ActiveRecord::QueryMethods#distinct pass field names but they
are incorrect for the current version of Rails.

ActiveRecord::QueryMethods#group provides the expected behavior and
benefits performance. See commit 6da24aad4cafdef8d8a2c92bac2002a5fc2fe9c8.

5 years agoEagerly load statuses with the main query in Api::V1::FavouritesController (#14673)
Akihiko Odaki [Fri, 28 Aug 2020 07:27:33 +0000 (16:27 +0900)]
Eagerly load statuses with the main query in Api::V1::FavouritesController (#14673)

The old implementation had two queries:
1. The query constructed in Api::V1::FavouritesController#results
2. The query constructed in #cached_favourites, which is merged with 1.

Both of them are issued againt PostgreSQL. The combination of the two
queries caused the following problems:
- The small window between the two queries involves race conditions.
- Minor performance inefficiency.

Moreover, the construction of query 2, which involves merging with query
1 has a bug. Query 1 is finalized with paginate_by_id, but paginate_by_id
returns an array when min_id parameter is specified. The behavior prevents
from merging the query, and in the real world, ActiveRecord simply ignores
the merge (!), which results in querying the entire scan of statuses and
favourites table.

This change fixes these issues by simply letting query 1 get all the works
done.

5 years agoBump events from 3.1.0 to 3.2.0 (#14653)
dependabot[bot] [Wed, 26 Aug 2020 00:41:37 +0000 (09:41 +0900)]
Bump events from 3.1.0 to 3.2.0 (#14653)

Bumps [events](https://github.com/Gozala/events) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/Gozala/events/releases)
- [Changelog](https://github.com/Gozala/events/blob/master/History.md)
- [Commits](https://github.com/Gozala/events/compare/v3.1.0...v3.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump jest from 26.4.0 to 26.4.2 (#14648)
dependabot[bot] [Tue, 25 Aug 2020 16:53:32 +0000 (01:53 +0900)]
Bump jest from 26.4.0 to 26.4.2 (#14648)

Bumps [jest](https://github.com/facebook/jest) from 26.4.0 to 26.4.2.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v26.4.0...v26.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump @clusterws/cws from 2.0.0 to 3.0.0 (#14630)
dependabot[bot] [Tue, 25 Aug 2020 16:32:53 +0000 (01:32 +0900)]
Bump @clusterws/cws from 2.0.0 to 3.0.0 (#14630)

Bumps [@clusterws/cws](https://github.com/ClusterWS/cWS) from 2.0.0 to 3.0.0.
- [Release notes](https://github.com/ClusterWS/cWS/releases)
- [Changelog](https://github.com/ClusterWS/cWS/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ClusterWS/cWS/commits)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump browserslist from 4.13.0 to 4.14.0 (#14652)
dependabot[bot] [Tue, 25 Aug 2020 16:12:13 +0000 (01:12 +0900)]
Bump browserslist from 4.13.0 to 4.14.0 (#14652)

Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.13.0 to 4.14.0.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/master/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.13.0...4.14.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump create-ecdh from 4.0.3 to 4.0.4 (#14649)
dependabot[bot] [Tue, 25 Aug 2020 15:41:15 +0000 (00:41 +0900)]
Bump create-ecdh from 4.0.3 to 4.0.4 (#14649)

Bumps [create-ecdh](https://github.com/crypto-browserify/createECDH) from 4.0.3 to 4.0.4.
- [Release notes](https://github.com/crypto-browserify/createECDH/releases)
- [Commits](https://github.com/crypto-browserify/createECDH/compare/v4.0.3...v4.0.4)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump css-loader from 3.6.0 to 4.2.2 (#14664)
dependabot[bot] [Tue, 25 Aug 2020 15:02:03 +0000 (00:02 +0900)]
Bump css-loader from 3.6.0 to 4.2.2 (#14664)

Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 3.6.0 to 4.2.2.
- [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/v3.6.0...v4.2.2)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump compression-webpack-plugin from 4.0.0 to 5.0.1 (#14647)
dependabot[bot] [Tue, 25 Aug 2020 15:01:46 +0000 (00:01 +0900)]
Bump compression-webpack-plugin from 4.0.0 to 5.0.1 (#14647)

Bumps [compression-webpack-plugin](https://github.com/webpack-contrib/compression-webpack-plugin) from 4.0.0 to 5.0.1.
- [Release notes](https://github.com/webpack-contrib/compression-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/compression-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/compression-webpack-plugin/compare/v4.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>
5 years agoBump imports-loader from 0.8.0 to 1.1.0 (#14323)
dependabot[bot] [Tue, 25 Aug 2020 13:50:47 +0000 (22:50 +0900)]
Bump imports-loader from 0.8.0 to 1.1.0 (#14323)

* Bump imports-loader from 0.8.0 to 1.1.0

Bumps [imports-loader](https://github.com/webpack-contrib/imports-loader) from 0.8.0 to 1.1.0.
- [Release notes](https://github.com/webpack-contrib/imports-loader/releases)
- [Changelog](https://github.com/webpack-contrib/imports-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/imports-loader/compare/v0.8.0...v1.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
* Migrate new syntax

* Add semicolon

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>
5 years agoBump sass-loader from 8.0.2 to 9.0.3 (#14637)
dependabot[bot] [Tue, 25 Aug 2020 12:51:51 +0000 (21:51 +0900)]
Bump sass-loader from 8.0.2 to 9.0.3 (#14637)

Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader) from 8.0.2 to 9.0.3.
- [Release notes](https://github.com/webpack-contrib/sass-loader/releases)
- [Changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/sass-loader/compare/v8.0.2...v9.0.3)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump aggregate-error from 3.0.1 to 3.1.0 (#14654)
dependabot[bot] [Tue, 25 Aug 2020 12:48:39 +0000 (21:48 +0900)]
Bump aggregate-error from 3.0.1 to 3.1.0 (#14654)

Bumps [aggregate-error](https://github.com/sindresorhus/aggregate-error) from 3.0.1 to 3.1.0.
- [Release notes](https://github.com/sindresorhus/aggregate-error/releases)
- [Commits](https://github.com/sindresorhus/aggregate-error/compare/v3.0.1...v3.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump js-base64 from 2.6.2 to 2.6.4 (#14650)
dependabot[bot] [Tue, 25 Aug 2020 12:44:10 +0000 (21:44 +0900)]
Bump js-base64 from 2.6.2 to 2.6.4 (#14650)

Bumps [js-base64](https://github.com/dankogai/js-base64) from 2.6.2 to 2.6.4.
- [Release notes](https://github.com/dankogai/js-base64/releases)
- [Commits](https://github.com/dankogai/js-base64/compare/2.6.2...2.6.4)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump eventemitter3 from 4.0.4 to 4.0.5 (#14646)
dependabot[bot] [Tue, 25 Aug 2020 12:43:00 +0000 (21:43 +0900)]
Bump eventemitter3 from 4.0.4 to 4.0.5 (#14646)

Bumps [eventemitter3](https://github.com/primus/eventemitter3) from 4.0.4 to 4.0.5.
- [Release notes](https://github.com/primus/eventemitter3/releases)
- [Commits](https://github.com/primus/eventemitter3/compare/4.0.4...4.0.5)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump postgres-date from 1.0.5 to 1.0.6 (#14642)
dependabot[bot] [Tue, 25 Aug 2020 12:38:20 +0000 (21:38 +0900)]
Bump postgres-date from 1.0.5 to 1.0.6 (#14642)

Bumps [postgres-date](https://github.com/bendrucker/postgres-date) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/bendrucker/postgres-date/releases)
- [Commits](https://github.com/bendrucker/postgres-date/compare/v1.0.5...v1.0.6)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump autoprefixer from 9.8.5 to 9.8.6 (#14641)
dependabot[bot] [Tue, 25 Aug 2020 12:35:57 +0000 (21:35 +0900)]
Bump autoprefixer from 9.8.5 to 9.8.6 (#14641)

Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 9.8.5 to 9.8.6.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/9.8.5...9.8.6)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump @babel/runtime from 7.10.5 to 7.11.2 (#14639)
dependabot[bot] [Tue, 25 Aug 2020 12:33:31 +0000 (21:33 +0900)]
Bump @babel/runtime from 7.10.5 to 7.11.2 (#14639)

Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime) from 7.10.5 to 7.11.2.
- [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.11.2/packages/babel-runtime)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump @babel/plugin-transform-runtime from 7.10.5 to 7.11.0 (#14645)
dependabot[bot] [Tue, 25 Aug 2020 12:32:29 +0000 (21:32 +0900)]
Bump @babel/plugin-transform-runtime from 7.10.5 to 7.11.0 (#14645)

Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime) from 7.10.5 to 7.11.0.
- [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.11.0/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>
5 years agoBump browserify-sign from 4.2.0 to 4.2.1 (#14636)
dependabot[bot] [Tue, 25 Aug 2020 12:30:11 +0000 (21:30 +0900)]
Bump browserify-sign from 4.2.0 to 4.2.1 (#14636)

Bumps [browserify-sign](https://github.com/crypto-browserify/browserify-sign) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/crypto-browserify/browserify-sign/releases)
- [Commits](https://github.com/crypto-browserify/browserify-sign/compare/v4.2.0...v4.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump babel-jest from 26.1.0 to 26.3.0 (#14634)
dependabot[bot] [Tue, 25 Aug 2020 12:15:38 +0000 (21:15 +0900)]
Bump babel-jest from 26.1.0 to 26.3.0 (#14634)

Bumps [babel-jest](https://github.com/facebook/jest/tree/HEAD/packages/babel-jest) from 26.1.0 to 26.3.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v26.3.0/packages/babel-jest)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump copy-webpack-plugin from 6.0.2 to 6.0.3 (#14633)
dependabot[bot] [Tue, 25 Aug 2020 12:13:39 +0000 (21:13 +0900)]
Bump copy-webpack-plugin from 6.0.2 to 6.0.3 (#14633)

Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin) from 6.0.2 to 6.0.3.
- [Release notes](https://github.com/webpack-contrib/copy-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.0.2...v6.0.3)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump minizlib from 2.1.0 to 2.1.2 (#14632)
dependabot[bot] [Tue, 25 Aug 2020 12:13:13 +0000 (21:13 +0900)]
Bump minizlib from 2.1.0 to 2.1.2 (#14632)

Bumps [minizlib](https://github.com/isaacs/minizlib) from 2.1.0 to 2.1.2.
- [Release notes](https://github.com/isaacs/minizlib/releases)
- [Commits](https://github.com/isaacs/minizlib/compare/v2.1.0...v2.1.2)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump webpack from 4.44.0 to 4.44.1 (#14628)
dependabot[bot] [Tue, 25 Aug 2020 12:10:01 +0000 (21:10 +0900)]
Bump webpack from 4.44.0 to 4.44.1 (#14628)

Bumps [webpack](https://github.com/webpack/webpack) from 4.44.0 to 4.44.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.44.0...v4.44.1)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump net-ldap from 0.16.2 to 0.16.3 (#14627)
dependabot[bot] [Tue, 25 Aug 2020 12:02:06 +0000 (21:02 +0900)]
Bump net-ldap from 0.16.2 to 0.16.3 (#14627)

Bumps [net-ldap](https://github.com/ruby-ldap/ruby-net-ldap) from 0.16.2 to 0.16.3.
- [Release notes](https://github.com/ruby-ldap/ruby-net-ldap/releases)
- [Changelog](https://github.com/ruby-ldap/ruby-net-ldap/blob/master/History.rdoc)
- [Commits](https://github.com/ruby-ldap/ruby-net-ldap/compare/v0.16.2...v0.16.3)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump elasticsearch from 7.8.1 to 7.9.0 (#14625)
dependabot[bot] [Tue, 25 Aug 2020 11:59:39 +0000 (20:59 +0900)]
Bump elasticsearch from 7.8.1 to 7.9.0 (#14625)

Bumps [elasticsearch](https://github.com/elastic/elasticsearch-ruby) from 7.8.1 to 7.9.0.
- [Release notes](https://github.com/elastic/elasticsearch-ruby/releases)
- [Changelog](https://github.com/elastic/elasticsearch-ruby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/elastic/elasticsearch-ruby/compare/v7.8.1...v7.9.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump elasticsearch-transport from 7.8.1 to 7.9.0 (#14624)
dependabot[bot] [Tue, 25 Aug 2020 11:58:59 +0000 (20:58 +0900)]
Bump elasticsearch-transport from 7.8.1 to 7.9.0 (#14624)

Bumps [elasticsearch-transport](https://github.com/elastic/elasticsearch-ruby) from 7.8.1 to 7.9.0.
- [Release notes](https://github.com/elastic/elasticsearch-ruby/releases)
- [Changelog](https://github.com/elastic/elasticsearch-ruby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/elastic/elasticsearch-ruby/compare/v7.8.1...v7.9.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump redis-namespace from 1.7.0 to 1.8.0 (#14623)
dependabot[bot] [Tue, 25 Aug 2020 11:57:44 +0000 (20:57 +0900)]
Bump redis-namespace from 1.7.0 to 1.8.0 (#14623)

Bumps [redis-namespace](https://github.com/resque/redis-namespace) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/resque/redis-namespace/releases)
- [Changelog](https://github.com/resque/redis-namespace/blob/master/CHANGELOG.md)
- [Commits](https://github.com/resque/redis-namespace/compare/v1.7.0...v1.8.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump jwt from 2.2.1 to 2.2.2 (#14621)
dependabot[bot] [Tue, 25 Aug 2020 11:53:09 +0000 (20:53 +0900)]
Bump jwt from 2.2.1 to 2.2.2 (#14621)

Bumps [jwt](https://github.com/jwt/ruby-jwt) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/jwt/ruby-jwt/releases)
- [Changelog](https://github.com/jwt/ruby-jwt/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jwt/ruby-jwt/compare/v2.2.1...v2.2.2)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump webpacker from 5.2.0 to 5.2.1 (#14619)
dependabot[bot] [Tue, 25 Aug 2020 11:49:20 +0000 (20:49 +0900)]
Bump webpacker from 5.2.0 to 5.2.1 (#14619)

Bumps [webpacker](https://github.com/rails/webpacker) from 5.2.0 to 5.2.1.
- [Release notes](https://github.com/rails/webpacker/releases)
- [Changelog](https://github.com/rails/webpacker/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rails/webpacker/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>
5 years agoBump oj from 3.10.8 to 3.10.12 (#14620)
dependabot[bot] [Tue, 25 Aug 2020 11:45:57 +0000 (20:45 +0900)]
Bump oj from 3.10.8 to 3.10.12 (#14620)

Bumps [oj](https://github.com/ohler55/oj) from 3.10.8 to 3.10.12.
- [Release notes](https://github.com/ohler55/oj/releases)
- [Changelog](https://github.com/ohler55/oj/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/ohler55/oj/compare/v3.10.8...v3.10.12)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump aws-sdk-core from 3.104.3 to 3.104.4 (#14618)
dependabot[bot] [Tue, 25 Aug 2020 11:44:58 +0000 (20:44 +0900)]
Bump aws-sdk-core from 3.104.3 to 3.104.4 (#14618)

Bumps [aws-sdk-core](https://github.com/aws/aws-sdk-ruby) from 3.104.3 to 3.104.4.
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/master/gems/aws-sdk-core/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>
5 years agoUse Status.group instead of Status.distinct in HashQueryService (#14662)
Akihiko Odaki [Tue, 25 Aug 2020 11:39:35 +0000 (20:39 +0900)]
Use Status.group instead of Status.distinct in HashQueryService (#14662)

DISTINCT clause removes duplicated records according to all the selected
attributes. In reality, it can remove duplicated records only looking at
statuses.id, but the clause confuses the query planner and yields
insufficient performance.
The behavior is also problematic if the scope produced by HashQueryService
is used to query columns without id (using pluck method, for example). The
scope is expected to contain unique statuses, but the uniquness will be
evaluated with some arbitrary columns other than id.

GROUP BY clause resolves those problem by explicitly specifying the
column to take into account for the record distinction.

A workaround for the problem of DISTINCT clause in
Api::V1::Timelines::TagController is no longer necessary and removed.

5 years agorefactor: add email previews for WebAuthn emails (#14658)
santiagorodriguez96 [Mon, 24 Aug 2020 23:21:11 +0000 (20:21 -0300)]
refactor: add email previews for WebAuthn emails (#14658)

This is a leftover for the work done in #14466.

5 years agoStop installing libssl-dev for build (#14660)
Daigo 3 Dango [Mon, 24 Aug 2020 23:20:59 +0000 (23:20 +0000)]
Stop installing libssl-dev for build (#14660)

libssl-dev is provided with the stack image in build time and
conflicts in building openssl Gem for webauthn Gem added with #14466.

5 years agoAdd support for latest HTTP Signatures spec draft (#14556)
ThibG [Mon, 24 Aug 2020 16:21:07 +0000 (18:21 +0200)]
Add support for latest HTTP Signatures spec draft (#14556)

* Add support for latest HTTP Signatures spec draft

https://www.ietf.org/id/draft-ietf-httpbis-message-signatures-00.html

- add support for the “hs2019” signature algorithm (assumed to be equivalent
  to RSA-SHA256, since we do not have a mechanism to specify the algorithm
  within the key metadata yet)
- add support for (created) and (expires) pseudo-headers and related
  signature parameters, when using the hs2019 signature algorithm
- adjust default “headers” parameter while being backwards-compatible with
  previous implementation
- change the acceptable time window logic from 12 hours surrounding the “date”
  header to accepting signatures created up to 1 hour in the future and
  expiring up to 1 hour in the past (but only allowing expiration dates up to
  12 hours after the creation date)
  This doesn't conform with the current draft, as it doesn't permit accounting
  for clock skew.
  This, however, should be addressed in a next version of the draft:
  https://github.com/httpwg/http-extensions/pull/1235

* Add additional signature requirements

* Rewrite signature params parsing using Parslet

* Make apparent which signature algorithm Mastodon on verification failure

Mastodon uses RSASSA-PKCS1-v1_5, which is not recommended for new applications,
and new implementers may thus unknowingly use RSASSA-PSS.

* Add workaround for PeerTube's invalid signature header

The previous parser allowed incorrect Signature headers, such as
those produced by old versions of the `http-signature` node.js package,
and seemingly used by PeerTube.

This commit adds a workaround for that.

* Fix `signature_key_id` raising an exception

Previously, parsing failures would result in `signature_key_id` being nil,
but the parser changes made that result in an exception.

This commit changes the `signature_key_id` method to return `nil` in case
of parsing failures.

* Move extra HTTP signature helper methods to private methods

* Relax (request-target) requirement to (request-target) || digest

This lets requests from Plume work without lowering security significantly.

5 years agoFix an error when file_file_size is nil in tootctl media remove (#14657)
Takeshi Umeda [Mon, 24 Aug 2020 16:09:46 +0000 (01:09 +0900)]
Fix an error when file_file_size is nil in tootctl media remove (#14657)

5 years agoFix dereferencing remote statuses not using the correct account (#14656)
ThibG [Mon, 24 Aug 2020 14:56:21 +0000 (16:56 +0200)]
Fix dereferencing remote statuses not using the correct account (#14656)

Follow-up to #14359

In the case of limited toots, the receiver may not be explicitly part of the
audience. If a specific user's inbox URI was specified, it makes sense to
dereference the toot from the corresponding user, instead of trying to find
someone in the explicit audience.

5 years agoAdd WebAuthn as an alternative 2FA method (#14466)
santiagorodriguez96 [Mon, 24 Aug 2020 14:46:27 +0000 (11:46 -0300)]
Add WebAuthn as an alternative 2FA method (#14466)

* feat: add possibility of adding WebAuthn security keys to use as 2FA

This adds a basic UI for enabling WebAuthn 2FA. We did a little refactor
to the Settings page for editing the 2FA methods – now it will list the
methods that are available to the user (TOTP and WebAuthn) and from
there they'll be able to add or remove any of them.
Also, it's worth mentioning that for enabling WebAuthn it's required to
have TOTP enabled, so the first time that you go to the 2FA Settings
page, you'll be asked to set it up.
This work was inspired by the one donde by Github in their platform, and
despite it could be approached in different ways, we decided to go with
this one given that we feel that this gives a great UX.

Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>
* feat: add request for WebAuthn as second factor at login if enabled

This commits adds the feature for using WebAuthn as a second factor for
login when enabled.
If users have WebAuthn enabled, now a page requesting for the use of a
WebAuthn credential for log in will appear, although a link redirecting
to the old page for logging in using a two-factor code will also be
present.

Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>
* feat: add possibility of deleting WebAuthn Credentials

Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>
* feat: disable WebAuthn when an Admin disables 2FA for a user

Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>
* feat: remove ability to disable TOTP leaving only WebAuthn as 2FA

Following examples form other platforms like Github, we decided to make
Webauthn 2FA secondary to 2FA with TOTP, so that we removed the
possibility of removing TOTP authentication only, leaving users with
just WEbAuthn as 2FA. Instead, users will have to click on 'Disable 2FA'
in order to remove second factor auth.
The reason for WebAuthn being secondary to TOPT is that in that way,
users will still be able to log in using their code from their phone's
application if they don't have their security keys with them – or maybe
even lost them.

* We had to change a little the flow for setting up TOTP, given that now
  it's possible to setting up again if you already had TOTP, in order to
  let users modify their authenticator app – given that now it's not
  possible for them to disable TOTP and set it up again with another
  authenticator app.
  So, basically, now instead of storing the new `otp_secret` in the
  user, we store it in the session until the process of set up is
  finished.
  This was because, as it was before, when users clicked on 'Edit' in
  the new two-factor methods lists page, but then went back without
  finishing the flow, their `otp_secret` had been changed therefore
  invalidating their previous authenticator app, making them unable to
  log in again using TOTP.

Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>
* refactor: fix eslint errors

The PR build was failing given that linting returning some errors.
This commit attempts to fix them.

* refactor: normalize i18n translations

The build was failing given that i18n translations files were not
normalized.
This commits fixes that.

* refactor: avoid having the webauthn gem locked to a specific version

* refactor: use symbols for routes without '/'

* refactor: avoid sending webauthn disabled email when 2FA is disabled

When an admins disable 2FA for users, we were sending two mails
to them, one notifying that 2FA was disabled and the other to notify
that WebAuthn was disabled.
As the second one is redundant since the first email includes it, we can
remove it and send just one email to users.

* refactor: avoid creating new env variable for webauthn_origin config

* refactor: improve flash error messages for webauthn pages

Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>
5 years agoFix: also use custom private boost icon for detailed status (#14471)
Tdxdxoz [Mon, 24 Aug 2020 12:13:44 +0000 (20:13 +0800)]
Fix: also use custom private boost icon for detailed status (#14471)

* use custom private boost icon for detail status

* only use className

5 years agoAdd support for inlined objects in activity audience (#14514)
ThibG [Mon, 24 Aug 2020 12:11:47 +0000 (14:11 +0200)]
Add support for inlined objects in activity audience (#14514)

* Add support for inlined objects in activity audience

* Add tests

5 years agoBetter manage subscriptionCounters (#14608)
Daigo 3 Dango [Mon, 24 Aug 2020 12:06:45 +0000 (12:06 +0000)]
Better manage subscriptionCounters (#14608)

Before this change:
- unsubscribe() was not called for a disconnection
- It seems that WebSocketClient calls connected() and reconnected().
  subscriptionCounters were incremented twice for a single reconnection,
  first from connected() and second from reconnected()

This might be a an additional change to
https://github.com/tootsuite/mastodon/pull/14579
to recover subscriptions after a reconnect.

5 years agoreword "boost to original audience" as per #14596 (#14598)
proxy [Sat, 22 Aug 2020 22:08:31 +0000 (18:08 -0400)]
reword "boost to original audience" as per #14596 (#14598)

5 years agoFix click range discrepancies in gifv (#14615)
Takeshi Umeda [Sat, 22 Aug 2020 22:08:12 +0000 (07:08 +0900)]
Fix click range discrepancies in gifv (#14615)

5 years agoBump jest-cli from 26.4.0 to 26.4.2 (#14614)
dependabot[bot] [Sat, 22 Aug 2020 14:09:18 +0000 (23:09 +0900)]
Bump jest-cli from 26.4.0 to 26.4.2 (#14614)

Bumps [jest-cli](https://github.com/facebook/jest/tree/HEAD/packages/jest-cli) from 26.4.0 to 26.4.2.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v26.4.2/packages/jest-cli)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump jsdom from 16.3.0 to 16.4.0 (#14587)
dependabot[bot] [Sat, 22 Aug 2020 13:48:23 +0000 (22:48 +0900)]
Bump jsdom from 16.3.0 to 16.4.0 (#14587)

Bumps [jsdom](https://github.com/jsdom/jsdom) from 16.3.0 to 16.4.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md)
- [Commits](https://github.com/jsdom/jsdom/compare/16.3.0...16.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoFix scrolling issues when closing some dropdown menus (#14606)
ThibG [Fri, 21 Aug 2020 12:14:28 +0000 (14:14 +0200)]
Fix scrolling issues when closing some dropdown menus (#14606)

5 years agoBump simplecov from 0.18.5 to 0.19.0 (#14590)
dependabot[bot] [Thu, 20 Aug 2020 20:31:28 +0000 (05:31 +0900)]
Bump simplecov from 0.18.5 to 0.19.0 (#14590)

Bumps [simplecov](https://github.com/simplecov-ruby/simplecov) from 0.18.5 to 0.19.0.
- [Release notes](https://github.com/simplecov-ruby/simplecov/releases)
- [Changelog](https://github.com/simplecov-ruby/simplecov/blob/main/CHANGELOG.md)
- [Commits](https://github.com/simplecov-ruby/simplecov/compare/v0.18.5...v0.19.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump duplexer from 0.1.1 to 0.1.2 (#14593)
dependabot[bot] [Thu, 20 Aug 2020 20:29:36 +0000 (05:29 +0900)]
Bump duplexer from 0.1.1 to 0.1.2 (#14593)

Bumps [duplexer](https://github.com/Raynos/duplexer) from 0.1.1 to 0.1.2.
- [Release notes](https://github.com/Raynos/duplexer/releases)
- [Commits](https://github.com/Raynos/duplexer/compare/v0.1.1...v0.1.2)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump portfinder from 1.0.26 to 1.0.28 (#14594)
dependabot[bot] [Thu, 20 Aug 2020 20:28:14 +0000 (05:28 +0900)]
Bump portfinder from 1.0.26 to 1.0.28 (#14594)

Bumps [portfinder](https://github.com/http-party/node-portfinder) from 1.0.26 to 1.0.28.
- [Release notes](https://github.com/http-party/node-portfinder/releases)
- [Commits](https://github.com/http-party/node-portfinder/compare/v1.0.26...v1.0.28)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump webpacker from 5.1.1 to 5.2.0 (#14586)
dependabot[bot] [Thu, 20 Aug 2020 20:23:52 +0000 (05:23 +0900)]
Bump webpacker from 5.1.1 to 5.2.0 (#14586)

Bumps [webpacker](https://github.com/rails/webpacker) from 5.1.1 to 5.2.0.
- [Release notes](https://github.com/rails/webpacker/releases)
- [Changelog](https://github.com/rails/webpacker/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rails/webpacker/compare/v5.1.1...v5.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump intersection-observer from 0.10.0 to 0.11.0 (#14589)
dependabot[bot] [Thu, 20 Aug 2020 20:16:57 +0000 (05:16 +0900)]
Bump intersection-observer from 0.10.0 to 0.11.0 (#14589)

Bumps [intersection-observer](https://github.com/w3c/IntersectionObserver) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/w3c/IntersectionObserver/releases)
- [Commits](https://github.com/w3c/IntersectionObserver/commits)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump aws-sigv4 from 1.2.1 to 1.2.2 (#14588)
dependabot[bot] [Thu, 20 Aug 2020 20:16:10 +0000 (05:16 +0900)]
Bump aws-sigv4 from 1.2.1 to 1.2.2 (#14588)

Bumps [aws-sigv4](https://github.com/aws/aws-sdk-ruby) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/master/gems/aws-sigv4/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-ruby/compare/1.2.1...1.2.2)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump redis-rack from 2.1.2 to 2.1.3 (#14584)
dependabot[bot] [Thu, 20 Aug 2020 20:15:38 +0000 (05:15 +0900)]
Bump redis-rack from 2.1.2 to 2.1.3 (#14584)

Bumps [redis-rack](http://redis-store.org/redis-rack) from 2.1.2 to 2.1.3.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump aws-sdk-s3 from 1.76.0 to 1.78.0 (#14583)
dependabot[bot] [Thu, 20 Aug 2020 20:14:30 +0000 (05:14 +0900)]
Bump aws-sdk-s3 from 1.76.0 to 1.78.0 (#14583)

Bumps [aws-sdk-s3](https://github.com/aws/aws-sdk-ruby) from 1.76.0 to 1.78.0.
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/master/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>
5 years agoBump jest from 26.2.2 to 26.4.0 (#14585)
dependabot[bot] [Thu, 20 Aug 2020 20:12:03 +0000 (05:12 +0900)]
Bump jest from 26.2.2 to 26.4.0 (#14585)

Bumps [jest](https://github.com/facebook/jest) from 26.2.2 to 26.4.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v26.2.2...v26.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump bootsnap from 1.4.7 to 1.4.8 (#14581)
dependabot[bot] [Thu, 20 Aug 2020 20:11:37 +0000 (05:11 +0900)]
Bump bootsnap from 1.4.7 to 1.4.8 (#14581)

Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.4.7 to 1.4.8.
- [Release notes](https://github.com/Shopify/bootsnap/releases)
- [Changelog](https://github.com/Shopify/bootsnap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Shopify/bootsnap/compare/v1.4.7...v1.4.8)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump har-validator from 5.1.3 to 5.1.5 (#14580)
dependabot[bot] [Thu, 20 Aug 2020 20:11:09 +0000 (05:11 +0900)]
Bump har-validator from 5.1.3 to 5.1.5 (#14580)

Bumps [har-validator](https://github.com/ahmadnassri/node-har-validator) from 5.1.3 to 5.1.5.
- [Release notes](https://github.com/ahmadnassri/node-har-validator/releases)
- [Changelog](https://github.com/ahmadnassri/node-har-validator/blob/master/.releaserc)
- [Commits](https://github.com/ahmadnassri/node-har-validator/compare/v5.1.3...v5.1.5)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoFix not being able to unbookmark toots when blocked by their author (#14604)
ThibG [Wed, 19 Aug 2020 17:02:06 +0000 (19:02 +0200)]
Fix not being able to unbookmark toots when blocked by their author (#14604)

* Fix not being able to unbookmark toots when blocked by their author

* Add tests

5 years agoFix client-side form validation not accepting handles with uppercase letters (#14599)
ThibG [Wed, 19 Aug 2020 17:00:47 +0000 (19:00 +0200)]
Fix client-side form validation not accepting handles with uppercase letters (#14599)

5 years agoBump aws-partitions from 1.353.0 to 1.356.0 (#14578)
dependabot[bot] [Sun, 16 Aug 2020 18:37:55 +0000 (03:37 +0900)]
Bump aws-partitions from 1.353.0 to 1.356.0 (#14578)

Bumps [aws-partitions](https://github.com/aws/aws-sdk-ruby) from 1.353.0 to 1.356.0.
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/master/gems/aws-partitions/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>
5 years agoBump tty-color from 0.5.1 to 0.5.2 (#14547)
dependabot[bot] [Sun, 16 Aug 2020 17:32:28 +0000 (02:32 +0900)]
Bump tty-color from 0.5.1 to 0.5.2 (#14547)

Bumps [tty-color](https://github.com/piotrmurach/tty-color) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/piotrmurach/tty-color/releases)
- [Changelog](https://github.com/piotrmurach/tty-color/blob/master/CHANGELOG.md)
- [Commits](https://github.com/piotrmurach/tty-color/compare/v0.5.1...v0.5.2)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump abab from 2.0.3 to 2.0.4 (#14550)
dependabot[bot] [Sun, 16 Aug 2020 17:32:06 +0000 (02:32 +0900)]
Bump abab from 2.0.3 to 2.0.4 (#14550)

Bumps [abab](https://github.com/jsdom/abab) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/jsdom/abab/releases)
- [Changelog](https://github.com/jsdom/abab/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jsdom/abab/compare/2.0.3...2.0.4)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump fugit from 1.3.6 to 1.3.8 (#14548)
dependabot[bot] [Sun, 16 Aug 2020 17:29:34 +0000 (02:29 +0900)]
Bump fugit from 1.3.6 to 1.3.8 (#14548)

Bumps [fugit](https://github.com/floraison/fugit) from 1.3.6 to 1.3.8.
- [Release notes](https://github.com/floraison/fugit/releases)
- [Changelog](https://github.com/floraison/fugit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/floraison/fugit/compare/v1.3.6...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump jest-haste-map from 26.1.0 to 26.2.2 (#14552)
dependabot[bot] [Sun, 16 Aug 2020 17:29:10 +0000 (02:29 +0900)]
Bump jest-haste-map from 26.1.0 to 26.2.2 (#14552)

Bumps [jest-haste-map](https://github.com/facebook/jest/tree/HEAD/packages/jest-haste-map) from 26.1.0 to 26.2.2.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v26.2.2/packages/jest-haste-map)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump pkg-config from 1.4.1 to 1.4.2 (#14549)
dependabot[bot] [Sun, 16 Aug 2020 17:25:21 +0000 (02:25 +0900)]
Bump pkg-config from 1.4.1 to 1.4.2 (#14549)

Bumps [pkg-config](https://github.com/ruby-gnome/pkg-config) from 1.4.1 to 1.4.2.
- [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.1...1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump premailer from 1.12.1 to 1.13.1 (#14544)
dependabot[bot] [Sun, 16 Aug 2020 17:24:46 +0000 (02:24 +0900)]
Bump premailer from 1.12.1 to 1.13.1 (#14544)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump chunky_png from 1.3.11 to 1.3.12 (#14545)
dependabot[bot] [Sun, 16 Aug 2020 17:22:35 +0000 (02:22 +0900)]
Bump chunky_png from 1.3.11 to 1.3.12 (#14545)

Bumps [chunky_png](https://github.com/wvanbergen/chunky_png) from 1.3.11 to 1.3.12.
- [Release notes](https://github.com/wvanbergen/chunky_png/releases)
- [Changelog](https://github.com/wvanbergen/chunky_png/blob/master/CHANGELOG.rdoc)
- [Commits](https://github.com/wvanbergen/chunky_png/compare/v1.3.11...v1.3.12)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump rdf from 3.1.4 to 3.1.5 (#14543)
dependabot[bot] [Sun, 16 Aug 2020 17:21:52 +0000 (02:21 +0900)]
Bump rdf from 3.1.4 to 3.1.5 (#14543)

Bumps [rdf](https://github.com/ruby-rdf/rdf) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/ruby-rdf/rdf/releases)
- [Changelog](https://github.com/ruby-rdf/rdf/blob/develop/CHANGES.md)
- [Commits](https://github.com/ruby-rdf/rdf/compare/3.1.4...3.1.5)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump use-latest from 1.0.0 to 1.1.0 (#14541)
dependabot[bot] [Sun, 16 Aug 2020 17:20:01 +0000 (02:20 +0900)]
Bump use-latest from 1.0.0 to 1.1.0 (#14541)

Bumps [use-latest](https://github.com/Andarist/use-latest) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/Andarist/use-latest/releases)
- [Commits](https://github.com/Andarist/use-latest/compare/v1.0.0...v1.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump aws-sdk-s3 from 1.75.0 to 1.76.0 (#14542)
dependabot[bot] [Sun, 16 Aug 2020 17:18:25 +0000 (02:18 +0900)]
Bump aws-sdk-s3 from 1.75.0 to 1.76.0 (#14542)

Bumps [aws-sdk-s3](https://github.com/aws/aws-sdk-ruby) from 1.75.0 to 1.76.0.
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/master/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>
5 years agoBump brakeman from 4.8.2 to 4.9.0 (#14540)
dependabot[bot] [Sun, 16 Aug 2020 17:17:00 +0000 (02:17 +0900)]
Bump brakeman from 4.8.2 to 4.9.0 (#14540)

Bumps [brakeman](https://github.com/presidentbeef/brakeman) from 4.8.2 to 4.9.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.8.2...v4.9.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump concurrent-ruby from 1.1.6 to 1.1.7 (#14539)
dependabot[bot] [Sun, 16 Aug 2020 17:16:12 +0000 (02:16 +0900)]
Bump concurrent-ruby from 1.1.6 to 1.1.7 (#14539)

Bumps [concurrent-ruby](https://github.com/ruby-concurrency/concurrent-ruby) from 1.1.6 to 1.1.7.
- [Release notes](https://github.com/ruby-concurrency/concurrent-ruby/releases)
- [Changelog](https://github.com/ruby-concurrency/concurrent-ruby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ruby-concurrency/concurrent-ruby/compare/v1.1.6...v1.1.7)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump @babel/core from 7.10.5 to 7.11.1 (#14554)
dependabot[bot] [Sun, 16 Aug 2020 17:08:26 +0000 (02:08 +0900)]
Bump @babel/core from 7.10.5 to 7.11.1 (#14554)

Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.10.5 to 7.11.1.
- [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.11.1/packages/babel-core)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoRemove dependency on unused and unmaintained http_parser.rb gem (#14574)
ThibG [Fri, 14 Aug 2020 16:04:00 +0000 (18:04 +0200)]
Remove dependency on unused and unmaintained http_parser.rb gem (#14574)

It seems that years ago, the “http” gem dependend on the “http_parser.rb” gem
(it now depends on the “http-parser” gem), and, still years ago, we pulled
it from git in order to benefit from a bugfix that wasn't released yet (#7467).

5 years agoFix hardcoded non-breaking space in public view (#14568)
ThibG [Thu, 13 Aug 2020 10:04:28 +0000 (12:04 +0200)]
Fix hardcoded non-breaking space in public view (#14568)

5 years agoFix destructuring error when unsubscribing without subscribing (#14566)
Eugen Rochko [Wed, 12 Aug 2020 13:36:07 +0000 (15:36 +0200)]
Fix destructuring error when unsubscribing without subscribing (#14566)

5 years agoImprove email address validation (#14565)
ThibG [Wed, 12 Aug 2020 10:40:25 +0000 (12:40 +0200)]
Improve email address validation (#14565)

* Increase DNS timeout from 1 second to 5 seconds for MX check

1 seconds is rather short when using a recursive DNS resolver which
hasn't got a cached result already available. Use 5 seconds instead,
which is the timeout value we use for outgoing HTTP queries.

* Add more precise error messages for invalid e-mail addresses

5 years agoAdd client-side validation in password change forms (#14564)
ThibG [Wed, 12 Aug 2020 10:11:15 +0000 (12:11 +0200)]
Add client-side validation in password change forms (#14564)

* Fix client-side username validation at registration

It used the Account::USERNAME_RE regexp which is for *remote* users,
local user validation is stricter. Also take into account max username length.

* Add client-side form validation for password change

* Add client-side form validation to dedicated registration form

Previous changes only applied to the /about page, not the dedicated form on
/auth

5 years agoAdd HTML form validation for the registration form (#14560)
ThibG [Tue, 11 Aug 2020 21:09:13 +0000 (23:09 +0200)]
Add HTML form validation for the registration form (#14560)

* Add HTML-level validation of username in sign-up form

* Make required fields with incorrect values more visible

* Enable HTML form validation for the registration form

* Mark agreement checkbox as required client-side

* Add minimum length to password

* Add client-side password confirmation validation

5 years agoAdd support for managing multiple stream subscriptions in a single connection (#14524)
Eugen Rochko [Tue, 11 Aug 2020 16:24:59 +0000 (18:24 +0200)]
Add support for managing multiple stream subscriptions in a single connection (#14524)

5 years agoFix `tootctl media` commands not handling snowflake ids for media_attachments (#14536)
ThibG [Sun, 9 Aug 2020 23:51:06 +0000 (01:51 +0200)]
Fix `tootctl media` commands not handling snowflake ids for media_attachments (#14536)

5 years agoUse default :edit routing (#14535)
niwatori24 [Sun, 9 Aug 2020 23:50:43 +0000 (08:50 +0900)]
Use default :edit routing (#14535)

5 years agoCache result of SQL (#14534)
niwatori24 [Sun, 9 Aug 2020 13:23:42 +0000 (22:23 +0900)]
Cache result of SQL (#14534)

5 years agoFix crash when failing to load emoji picker (#14525)
ThibG [Sat, 8 Aug 2020 15:57:56 +0000 (17:57 +0200)]
Fix crash when failing to load emoji picker (#14525)

Fixes #14523

5 years agoFix eslint error (#14521)
abcang [Fri, 7 Aug 2020 08:40:33 +0000 (17:40 +0900)]
Fix eslint error (#14521)

5 years agoBump node-notifier from 7.0.1 to 7.0.2 (#14499)
dependabot[bot] [Thu, 6 Aug 2020 15:41:07 +0000 (00:41 +0900)]
Bump node-notifier from 7.0.1 to 7.0.2 (#14499)

Bumps [node-notifier](https://github.com/mikaelbr/node-notifier) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/mikaelbr/node-notifier/releases)
- [Changelog](https://github.com/mikaelbr/node-notifier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mikaelbr/node-notifier/compare/v7.0.1...v7.0.2)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump minipass-pipeline from 1.2.3 to 1.2.4 (#14504)
dependabot[bot] [Thu, 6 Aug 2020 15:39:58 +0000 (00:39 +0900)]
Bump minipass-pipeline from 1.2.3 to 1.2.4 (#14504)

Bumps minipass-pipeline from 1.2.3 to 1.2.4.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump @testing-library/jest-dom from 5.11.0 to 5.11.2 (#14497)
dependabot[bot] [Thu, 6 Aug 2020 15:39:32 +0000 (00:39 +0900)]
Bump @testing-library/jest-dom from 5.11.0 to 5.11.2 (#14497)

Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.11.0 to 5.11.2.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.11.0...v5.11.2)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump dom-accessibility-api from 0.4.6 to 0.4.7 (#14496)
dependabot[bot] [Thu, 6 Aug 2020 15:38:46 +0000 (00:38 +0900)]
Bump dom-accessibility-api from 0.4.6 to 0.4.7 (#14496)

Bumps [dom-accessibility-api](https://github.com/eps1lon/dom-accessibility-api) from 0.4.6 to 0.4.7.
- [Release notes](https://github.com/eps1lon/dom-accessibility-api/releases)
- [Changelog](https://github.com/eps1lon/dom-accessibility-api/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eps1lon/dom-accessibility-api/compare/v0.4.6...v0.4.7)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump postcss-modules-local-by-default from 3.0.2 to 3.0.3 (#14505)
dependabot[bot] [Thu, 6 Aug 2020 15:37:50 +0000 (00:37 +0900)]
Bump postcss-modules-local-by-default from 3.0.2 to 3.0.3 (#14505)

Bumps [postcss-modules-local-by-default](https://github.com/css-modules/postcss-modules-local-by-default) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/css-modules/postcss-modules-local-by-default/releases)
- [Changelog](https://github.com/css-modules/postcss-modules-local-by-default/blob/master/CHANGELOG.md)
- [Commits](https://github.com/css-modules/postcss-modules-local-by-default/compare/v3.0.2...v3.0.3)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump jest from 26.0.1 to 26.2.2 (#14495)
dependabot[bot] [Thu, 6 Aug 2020 15:36:47 +0000 (00:36 +0900)]
Bump jest from 26.0.1 to 26.2.2 (#14495)

Bumps [jest](https://github.com/facebook/jest) from 26.0.1 to 26.2.2.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v26.0.1...v26.2.2)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump csstype from 2.6.10 to 2.6.13 (#14503)
dependabot[bot] [Thu, 6 Aug 2020 15:36:07 +0000 (00:36 +0900)]
Bump csstype from 2.6.10 to 2.6.13 (#14503)

Bumps [csstype](https://github.com/frenic/csstype) from 2.6.10 to 2.6.13.
- [Release notes](https://github.com/frenic/csstype/releases)
- [Commits](https://github.com/frenic/csstype/compare/v2.6.10...v2.6.13)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump excon from 0.75.0 to 0.76.0 (#14490)
dependabot[bot] [Thu, 6 Aug 2020 15:35:32 +0000 (00:35 +0900)]
Bump excon from 0.75.0 to 0.76.0 (#14490)

Bumps [excon](https://github.com/excon/excon) from 0.75.0 to 0.76.0.
- [Release notes](https://github.com/excon/excon/releases)
- [Changelog](https://github.com/excon/excon/blob/master/changelog.txt)
- [Commits](https://github.com/excon/excon/compare/v0.75.0...v0.76.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump eslint from 7.5.0 to 7.6.0 (#14508)
dependabot[bot] [Thu, 6 Aug 2020 15:34:48 +0000 (00:34 +0900)]
Bump eslint from 7.5.0 to 7.6.0 (#14508)

Bumps [eslint](https://github.com/eslint/eslint) from 7.5.0 to 7.6.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.5.0...v7.6.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoBump pghero from 2.6.0 to 2.7.0 (#14518)
dependabot[bot] [Thu, 6 Aug 2020 15:34:12 +0000 (00:34 +0900)]
Bump pghero from 2.6.0 to 2.7.0 (#14518)

Bumps [pghero](https://github.com/ankane/pghero) from 2.6.0 to 2.7.0.
- [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.6.0...v2.7.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agoFallback to previous, more approximative hashtag RE on older browsers (#14513)
ThibG [Wed, 5 Aug 2020 20:39:14 +0000 (22:39 +0200)]
Fallback to previous, more approximative hashtag RE on older browsers (#14513)

Fixes #14511

5 years agoBump rubocop-ast from 0.2.0 to 0.3.0 (#14498)
dependabot[bot] [Tue, 4 Aug 2020 20:31:57 +0000 (05:31 +0900)]
Bump rubocop-ast from 0.2.0 to 0.3.0 (#14498)

Bumps [rubocop-ast](https://github.com/rubocop-hq/rubocop-ast) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/rubocop-hq/rubocop-ast/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop-ast/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop-ast/compare/v0.2.0...v0.3.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>