]> cat aescling's git repositories - mastodon.git/log
mastodon.git
6 years agoFix spelling mistake (#12817)
koyu [Sat, 11 Jan 2020 02:32:25 +0000 (03:32 +0100)]
Fix spelling mistake (#12817)

6 years agoAdd support for linking XMPP URIs in toots (#12709)
ThibG [Sat, 11 Jan 2020 01:15:25 +0000 (02:15 +0100)]
Add support for linking XMPP URIs in toots (#12709)

* Fix wrong grouping in Twitter valid_url regex

* Add support for xmpp URIs

Fixes #9776

The difficult part is autolinking, because Twitter-text's extractor does
some pretty ad-hoc stuff to find things that “look like” URLs, and XMPP
URIs do not really match the assumptions of that lib, so it doesn't sound
wise to try to shoehorn it into the existing regex.

This is why I used a specific regex (very close, although slightly more
permissive than the RFC), and a specific scan function (a simplified version
of the generalized one from Twitter).

* Remove leading “xmpp:” from auto-linked text

6 years agoSuppress backtrace when delivering toots (#12798)
Daigo 3 Dango [Sat, 11 Jan 2020 01:15:03 +0000 (15:15 -1000)]
Suppress backtrace when delivering toots (#12798)

This is to suppress irrelevant backtrace from errors raised when
delivering toots to remote servers. The errors are usually out of
control by the local server and backtraces don't provide much
information.

This is similar to https://github.com/tootsuite/mastodon/pull/5174
and shortens backtraces like below:

```
WARN: Mastodon::UnexpectedResponseError: https://example.com/inbox returned code 523
WARN: app/workers/activitypub/delivery_worker.rb:48:in `block (3 levels) in perform_request'
app/lib/request.rb:75:in `perform'
app/workers/activitypub/delivery_worker.rb:47:in `block (2 levels) in perform_request'
app/lib/request_pool.rb:53:in `use'
app/lib/request_pool.rb:108:in `block (2 levels) in with'
vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.4.1/lib/active_support/notifications.rb:170:in `instrument'
app/lib/request_pool.rb:107:in `block in with'
app/lib/connection_pool/shared_connection_pool.rb:21:in `block (2 levels) in with'
app/lib/connection_pool/shared_connection_pool.rb:20:in `handle_interrupt'
app/lib/connection_pool/shared_connection_pool.rb:20:in `block in with'
app/lib/connection_pool/shared_connection_pool.rb:16:in `handle_interrupt'
app/lib/connection_pool/shared_connection_pool.rb:16:in `with'
app/lib/request_pool.rb:106:in `with'
app/workers/activitypub/delivery_worker.rb:46:in `block in perform_request'
vendor/bundle/ruby/2.7.0/gems/stoplight-2.2.0/lib/stoplight/light/runnable.rb:51:in `run_code'
vendor/bundle/ruby/2.7.0/gems/stoplight-2.2.0/lib/stoplight/light/runnable.rb:42:in `run_yellow'
vendor/bundle/ruby/2.7.0/gems/stoplight-2.2.0/lib/stoplight/light/runnable.rb:24:in `run'
app/workers/activitypub/delivery_worker.rb:57:in `perform_request'
app/workers/activitypub/delivery_worker.rb:25:in `perform'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:192:in `execute_job'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:165:in `block (2 levels) in process'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:128:in `block in invoke'
vendor/bundle/ruby/2.7.0/gems/nsa-0.2.7/lib/nsa/collectors/sidekiq.rb:31:in `block in call'
vendor/bundle/ruby/2.7.0/gems/nsa-0.2.7/lib/nsa/statsd/publisher.rb:27:in `statsd_time'
vendor/bundle/ruby/2.7.0/gems/nsa-0.2.7/lib/nsa/collectors/sidekiq.rb:30:in `call'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
app/lib/sidekiq_error_handler.rb:5:in `call'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
vendor/bundle/ruby/2.7.0/gems/scout_apm-2.3.0.pre3/lib/scout_apm/background_job_integrations/sidekiq.rb:69:in `call'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
vendor/bundle/ruby/2.7.0/gems/sidekiq-unique-jobs-6.0.18/lib/sidekiq_unique_jobs/server/middleware.rb:29:in `call'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:133:in `invoke'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:164:in `block in process'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:137:in `block (6 levels) in dispatch'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/job_retry.rb:109:in `local'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:136:in `block (5 levels) in dispatch'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/rails.rb:43:in `block in call'
vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.4.1/lib/active_support/execution_wrapper.rb:87:in `wrap'
vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.4.1/lib/active_support/reloader.rb:73:in `block in wrap'
vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.4.1/lib/active_support/execution_wrapper.rb:87:in `wrap'
vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.4.1/lib/active_support/reloader.rb:72:in `wrap'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/rails.rb:42:in `call'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:132:in `block (4 levels) in dispatch'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:250:in `stats'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:127:in `block (3 levels) in dispatch'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/job_logger.rb:8:in `call'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:126:in `block (2 levels) in dispatch'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/job_retry.rb:74:in `global'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:125:in `block in dispatch'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/logging.rb:48:in `with_context'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/logging.rb:42:in `with_job_hash_context'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:124:in `dispatch'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:163:in `process'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:83:in `process_one'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:71:in `run'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/util.rb:16:in `watchdog'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/util.rb:25:in `block in safe_thread'
```

```
WARN: Stoplight::Error::RedLight: https://example.com/inbox
WARN: vendor/bundle/ruby/2.7.0/gems/stoplight-2.2.0/lib/stoplight/light/runnable.rb:46:in `run_red'
vendor/bundle/ruby/2.7.0/gems/stoplight-2.2.0/lib/stoplight/light/runnable.rb:25:in `run'
app/workers/activitypub/delivery_worker.rb:57:in `perform_request'
app/workers/activitypub/delivery_worker.rb:25:in `perform'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:192:in `execute_job'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:165:in `block (2 levels) in process'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:128:in `block in invoke'
vendor/bundle/ruby/2.7.0/gems/nsa-0.2.7/lib/nsa/collectors/sidekiq.rb:31:in `block in call'
vendor/bundle/ruby/2.7.0/gems/nsa-0.2.7/lib/nsa/statsd/publisher.rb:27:in `statsd_time'
vendor/bundle/ruby/2.7.0/gems/nsa-0.2.7/lib/nsa/collectors/sidekiq.rb:30:in `call'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
app/lib/sidekiq_error_handler.rb:5:in `call'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
vendor/bundle/ruby/2.7.0/gems/scout_apm-2.3.0.pre3/lib/scout_apm/background_job_integrations/sidekiq.rb:69:in `call'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
vendor/bundle/ruby/2.7.0/gems/sidekiq-unique-jobs-6.0.18/lib/sidekiq_unique_jobs/server/middleware.rb:29:in `call'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:133:in `invoke'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:164:in `block in process'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:137:in `block (6 levels) in dispatch'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/job_retry.rb:109:in `local'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:136:in `block (5 levels) in dispatch'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/rails.rb:43:in `block in call'
vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.4.1/lib/active_support/execution_wrapper.rb:87:in `wrap'
vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.4.1/lib/active_support/reloader.rb:73:in `block in wrap'
vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.4.1/lib/active_support/execution_wrapper.rb:87:in `wrap'
vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.4.1/lib/active_support/reloader.rb:72:in `wrap'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/rails.rb:42:in `call'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:132:in `block (4 levels) in dispatch'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:250:in `stats'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:127:in `block (3 levels) in dispatch'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/job_logger.rb:8:in `call'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:126:in `block (2 levels) in dispatch'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/job_retry.rb:74:in `global'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:125:in `block in dispatch'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/logging.rb:48:in `with_context'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/logging.rb:42:in `with_job_hash_context'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:124:in `dispatch'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:163:in `process'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:83:in `process_one'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:71:in `run'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/util.rb:16:in `watchdog'
vendor/bundle/ruby/2.7.0/gems/sidekiq-5.2.7/lib/sidekiq/util.rb:25:in `block in safe_thread'
```

6 years agoUse heading actions and placeholders in settings (#12801)
Sasha Sorokin [Sat, 11 Jan 2020 01:14:45 +0000 (08:14 +0700)]
Use heading actions and placeholders in settings (#12801)

This commit:

- Refactors centered text blocks currently used for placeholders
  for empty tables and puts styles for it in separate class -
  .centered-text, simply aliasing text-align: center. Which is
  furtherly used in this commit.

- Improves applications settings page to use heading actions, moving
  "New application" button there, and displaying placeholder "You
  have no applications" in place of empty table.

- Improves custom emoji settings page to use heading action
  for "Upload" button, making it more easily accessible without
  need to scroll through all of the emojis.

- Improves email domain blocks settings page, moving "Add new" to the
  heading actions and using placeholder "No e-mail domains currently
  blacklisted" instead of showing empty table.

6 years agoAdd CircleCI task to test migrations (#12815)
ThibG [Sat, 11 Jan 2020 01:04:57 +0000 (02:04 +0100)]
Add CircleCI task to test migrations (#12815)

6 years agoChange audio/video playback to stop playback when out of view (#12486)
Eugen Rochko [Sat, 11 Jan 2020 01:02:21 +0000 (02:02 +0100)]
Change audio/video playback to stop playback when out of view (#12486)

Change video player to not loop, since the audio player doesn't

Change playback and mute buttons to feel snappier

6 years agoBump rdf-normalize from 0.3.3 to 0.4.0 (#12785)
dependabot-preview[bot] [Fri, 10 Jan 2020 22:02:16 +0000 (07:02 +0900)]
Bump rdf-normalize from 0.3.3 to 0.4.0 (#12785)

Bumps [rdf-normalize](https://github.com/gkellogg/rdf-normalize) from 0.3.3 to 0.4.0.
- [Release notes](https://github.com/gkellogg/rdf-normalize/releases)
- [Commits](https://github.com/gkellogg/rdf-normalize/compare/0.3.3...0.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoimprove status title (#8596)
Alexander [Fri, 10 Jan 2020 21:58:16 +0000 (22:58 +0100)]
improve status title (#8596)

* improve shown status title, useful for atom/rss

* use single quotes to satisfy codeclimate

* fix tests, make message more pretty

* fix tests

* fix codestyle

* fix codestyle

* remove atom_serializer_spec

Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>
6 years agoClarify keyword arguments with ** (#12769)
Daigo 3 Dango [Fri, 10 Jan 2020 20:57:05 +0000 (10:57 -1000)]
Clarify keyword arguments with ** (#12769)

This change is to suppress the warning below on on ruby-2.7.0:

- warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call

https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/

6 years agoFix old migrations failing because of strong_migrations update (#12787)
ThibG [Fri, 10 Jan 2020 20:52:24 +0000 (21:52 +0100)]
Fix old migrations failing because of strong_migrations update (#12787)

Fixes #12768

Some migrations were overlooked in #12692

6 years agoUpgrade CircleCI testing to Ruby 2.4-2.7 (#12800)
Shlee [Fri, 10 Jan 2020 04:34:25 +0000 (12:34 +0800)]
Upgrade CircleCI testing to Ruby 2.4-2.7 (#12800)

* Update config.yml

* Update Gemfile

6 years agoRename page_heading_actions variable (#12799)
Sasha Sorokin [Fri, 10 Jan 2020 00:10:17 +0000 (07:10 +0700)]
Rename page_heading_actions variable (#12799)

Current name - page_heading_actions is long and hard to remember,
this commit shortens it to just heading_actions, which is way more
easier to remember and write, it's logical too.

6 years agoUse quality values in Accept field to explicitly prefer JSON over HTML (#12806)
ThibG [Thu, 9 Jan 2020 23:10:29 +0000 (00:10 +0100)]
Use quality values in Accept field to explicitly prefer JSON over HTML (#12806)

6 years agoAdd --remote-only option to emoji purge (#12810)
ThibG [Thu, 9 Jan 2020 23:10:17 +0000 (00:10 +0100)]
Add --remote-only option to emoji purge (#12810)

Fixes #12804

6 years agoAllow blocking TLDs, and fix TLD blocks not being editable (#12805)
ThibG [Wed, 8 Jan 2020 21:42:05 +0000 (22:42 +0100)]
Allow blocking TLDs, and fix TLD blocks not being editable (#12805)

Fixes #12795

It was already possible to create domain blocks for TLDs, but those
weren't enforced, nor editable. This commit changes it so that they
are enforced and editable.

6 years agoLittle improvements to filters settings page (#12793)
Sasha Sorokin [Tue, 7 Jan 2020 09:41:19 +0000 (16:41 +0700)]
Little improvements to filters settings page (#12793)

When you have many filters, it may be hard for you to reach the button
to create yet another one. This commit moves creation button to the
heading, leaving the page just for the list.

On the other hand, when there are no filters, page looks kind of
strange with the empty table. So text stating obvious fact that user
has no filters was added in this commit too.

Closes #11020
Closes #12790

6 years agoFix reuse of detailed status components (#12792)
ThibG [Mon, 6 Jan 2020 17:22:17 +0000 (18:22 +0100)]
Fix reuse of detailed status components (#12792)

Fixes #12770

6 years agoBump pg from 1.2.0 to 1.2.1 (#12783)
dependabot-preview[bot] [Mon, 6 Jan 2020 14:52:23 +0000 (23:52 +0900)]
Bump pg from 1.2.0 to 1.2.1 (#12783)

Bumps [pg](https://github.com/ged/ruby-pg) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/ged/ruby-pg/releases)
- [Changelog](https://github.com/ged/ruby-pg/blob/master/History.rdoc)
- [Commits](https://github.com/ged/ruby-pg/compare/v1.2.0...v1.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump sass from 1.24.0 to 1.24.2 (#12778)
dependabot-preview[bot] [Mon, 6 Jan 2020 14:03:26 +0000 (23:03 +0900)]
Bump sass from 1.24.0 to 1.24.2 (#12778)

Bumps [sass](https://github.com/sass/dart-sass) from 1.24.0 to 1.24.2.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.24.0...1.24.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump aws-sdk-s3 from 1.59.0 to 1.60.1 (#12784)
dependabot-preview[bot] [Mon, 6 Jan 2020 14:03:05 +0000 (23:03 +0900)]
Bump aws-sdk-s3 from 1.59.0 to 1.60.1 (#12784)

Bumps [aws-sdk-s3](https://github.com/aws/aws-sdk-ruby) from 1.59.0 to 1.60.1.
- [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/compare/v1.59.0...v1.60.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump bullet from 6.0.2 to 6.1.0 (#12782)
dependabot-preview[bot] [Mon, 6 Jan 2020 14:02:46 +0000 (23:02 +0900)]
Bump bullet from 6.0.2 to 6.1.0 (#12782)

Bumps [bullet](https://github.com/flyerhzm/bullet) from 6.0.2 to 6.1.0.
- [Release notes](https://github.com/flyerhzm/bullet/releases)
- [Changelog](https://github.com/flyerhzm/bullet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/flyerhzm/bullet/compare/6.0.2...6.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump capybara from 3.29.0 to 3.30.0 (#12781)
dependabot-preview[bot] [Mon, 6 Jan 2020 13:56:04 +0000 (22:56 +0900)]
Bump capybara from 3.29.0 to 3.30.0 (#12781)

Bumps [capybara](https://github.com/teamcapybara/capybara) from 3.29.0 to 3.30.0.
- [Release notes](https://github.com/teamcapybara/capybara/releases)
- [Changelog](https://github.com/teamcapybara/capybara/blob/master/History.md)
- [Commits](https://github.com/teamcapybara/capybara/compare/3.29.0...3.30.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump wavesurfer.js from 3.2.0 to 3.3.0 (#12775)
dependabot-preview[bot] [Mon, 6 Jan 2020 13:44:42 +0000 (22:44 +0900)]
Bump wavesurfer.js from 3.2.0 to 3.3.0 (#12775)

Bumps [wavesurfer.js](https://github.com/katspaugh/wavesurfer.js) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/katspaugh/wavesurfer.js/releases)
- [Changelog](https://github.com/katspaugh/wavesurfer.js/blob/master/CHANGES.md)
- [Commits](https://github.com/katspaugh/wavesurfer.js/compare/3.2.0...3.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump @clusterws/cws from 0.16.1 to 0.17.3 (#12776)
dependabot-preview[bot] [Mon, 6 Jan 2020 13:44:02 +0000 (22:44 +0900)]
Bump @clusterws/cws from 0.16.1 to 0.17.3 (#12776)

Bumps @clusterws/cws from 0.16.1 to 0.17.3.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump webpack-dev-server from 3.9.0 to 3.10.1 (#12773)
dependabot-preview[bot] [Mon, 6 Jan 2020 13:30:00 +0000 (22:30 +0900)]
Bump webpack-dev-server from 3.9.0 to 3.10.1 (#12773)

Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 3.9.0 to 3.10.1.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/v3.10.1/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v3.9.0...v3.10.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump enzyme-adapter-react-16 from 1.15.1 to 1.15.2 (#12777)
dependabot-preview[bot] [Mon, 6 Jan 2020 10:42:03 +0000 (19:42 +0900)]
Bump enzyme-adapter-react-16 from 1.15.1 to 1.15.2 (#12777)

Bumps [enzyme-adapter-react-16](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme-adapter-react-16) from 1.15.1 to 1.15.2.
- [Release notes](https://github.com/airbnb/enzyme/releases)
- [Changelog](https://github.com/airbnb/enzyme/blob/master/CHANGELOG.md)
- [Commits](https://github.com/airbnb/enzyme/commits/enzyme-adapter-react-16@1.15.2/packages/enzyme-adapter-react-16)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump yargs from 15.0.2 to 15.1.0 (#12771)
dependabot-preview[bot] [Mon, 6 Jan 2020 10:41:02 +0000 (19:41 +0900)]
Bump yargs from 15.0.2 to 15.1.0 (#12771)

Bumps [yargs](https://github.com/yargs/yargs) from 15.0.2 to 15.1.0.
- [Release notes](https://github.com/yargs/yargs/releases)
- [Changelog](https://github.com/yargs/yargs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/yargs/compare/v15.0.2...v15.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump css-loader from 3.4.0 to 3.4.1 (#12772)
dependabot-preview[bot] [Mon, 6 Jan 2020 10:39:37 +0000 (19:39 +0900)]
Bump css-loader from 3.4.0 to 3.4.1 (#12772)

Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 3.4.0 to 3.4.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/v3.4.0...v3.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoUpdate lockfile for #12758 (#12762)
mayaeh [Sun, 5 Jan 2020 01:25:07 +0000 (10:25 +0900)]
Update lockfile for #12758 (#12762)

6 years agoGemfile Updates - Others (#12761)
Shlee [Sat, 4 Jan 2020 21:48:57 +0000 (05:48 +0800)]
Gemfile Updates - Others (#12761)

* Update Gemfile.lock

* Update Gemfile

* Update Gemfile.lock

* Update Gemfile.lock

* Update Gemfile

* Update Gemfile.lock

6 years agoGemfile Updates - Ruby 2.7 prep (#12758)
Shlee [Sat, 4 Jan 2020 21:48:34 +0000 (05:48 +0800)]
Gemfile Updates - Ruby 2.7 prep (#12758)

* Update Gemfile

* Update Gemfile

6 years agoGemfile Updates - fixes warnings (#12759)
Shlee [Sat, 4 Jan 2020 21:48:18 +0000 (05:48 +0800)]
Gemfile Updates - fixes warnings (#12759)

* Update Gemfile.lock

* Update Gemfile.lock

* Update Gemfile

6 years agoFix base64-encoded file uploads not being possible (#12748)
Eugen Rochko [Sat, 4 Jan 2020 00:54:07 +0000 (01:54 +0100)]
Fix base64-encoded file uploads not being possible (#12748)

Fix #3804, Fix #5776

6 years agofix unresolved external in @clusterws/cws by upgrading it (#12752)
Bastien Durel [Fri, 3 Jan 2020 10:57:25 +0000 (11:57 +0100)]
fix unresolved external in @clusterws/cws by upgrading it (#12752)

6 years agoFix resource_owner_from_credentials in Doorkeeper initializer (#12743)
Eugen Rochko [Fri, 3 Jan 2020 04:35:46 +0000 (05:35 +0100)]
Fix resource_owner_from_credentials in Doorkeeper initializer (#12743)

- Nil error when e-mail not found
- LDAP authentication used in place of PAM authentication

6 years agoFix missing authentication call in filters controller (#12746)
Eugen Rochko [Fri, 3 Jan 2020 04:29:08 +0000 (05:29 +0100)]
Fix missing authentication call in filters controller (#12746)

6 years agoFix uncaught unknown format errors in host meta controller (#12747)
Eugen Rochko [Fri, 3 Jan 2020 04:28:56 +0000 (05:28 +0100)]
Fix uncaught unknown format errors in host meta controller (#12747)

6 years agoFix URL search not returning private toots user has access to (#12742)
ThibG [Fri, 3 Jan 2020 04:01:45 +0000 (05:01 +0100)]
Fix URL search not returning private toots user has access to (#12742)

6 years agoFix cache digesting log noise on status embeds (#12750)
Eugen Rochko [Fri, 3 Jan 2020 04:00:17 +0000 (05:00 +0100)]
Fix cache digesting log noise on status embeds (#12750)

6 years agoAdd feature test that tests behaviour of profile name and bio (#12658)
Bèr Kessels [Fri, 3 Jan 2020 01:44:06 +0000 (02:44 +0100)]
Add feature test that tests behaviour of profile name and bio  (#12658)

* Add feature test that tests behaviour of profile name and bio

* Fix rubocop style errors in Login Spec.

* DRY log_in_spec by reusing the stories helper

Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
6 years agoFix 12661 (#12744)
Matt Panaro [Thu, 2 Jan 2020 21:46:42 +0000 (16:46 -0500)]
Fix 12661 (#12744)

* Revert "persist last-intersected status update and restore when ScrollableList is restored"

This reverts commit 07e26142ef6a8e74bd2ac5e9b461a5a1699bd4c8.

accidentally merged spurious code in https://github.com/tootsuite/mastodon/pull/12661.  https://github.com/tootsuite/mastodon/pull/12735 removes the slowdown that this code was trying to solve; and other functionality successfully restores the view state of the list

* Revert "cache currently-viewing status id to avoid calling redux with identical value"

This reverts commit c93df2159fbd3888a5c48d8a8b8ae61dbbc54b89.

accidentally merged spurious code in https://github.com/tootsuite/mastodon/pull/12661.  https://github.com/tootsuite/mastodon/pull/12735 removes the slowdown that this code was trying to solve; and other functionality successfully restores the view state of the list

6 years agoFix RefollowWorker not keeping show_reblogs setting (#12707)
ThibG [Thu, 2 Jan 2020 19:52:39 +0000 (20:52 +0100)]
Fix RefollowWorker not keeping show_reblogs setting (#12707)

* Fix RefollowWorker not keeping show_reblogs setting

* Fix RefollowWorker

6 years agoFix uncaught query param encoding errors (#12741)
Eugen Rochko [Thu, 2 Jan 2020 16:14:58 +0000 (17:14 +0100)]
Fix uncaught query param encoding errors (#12741)

6 years agoAdd translation project promotion link (#12736)
Sasha Sorokin [Tue, 31 Dec 2019 21:15:05 +0000 (04:15 +0700)]
Add translation project promotion link (#12736)

This commit adds promotional notice on appearance settings about
translation project if any other locale than English is used. It
allows users to learn and contribute translations to Mastodon.

Step ahead, in this commit one unusual string is added - link to a
guide. By default it refers to Crowdin project itself, but if any of
Mastodon localization teams established their own guide, they can
refer it. Or, if Crowdin supports localized domain for language, it
can also be put there (e.g. https://fr.crowdin.com/...).

6 years agorefactor IntersectionObserver to observe viewport in single-column mode (#12735)
Matt Panaro [Tue, 31 Dec 2019 20:39:25 +0000 (15:39 -0500)]
refactor IntersectionObserver to observe viewport in single-column mode (#12735)

6 years agoHide blocked users from more places (#12733)
ThibG [Mon, 30 Dec 2019 23:55:32 +0000 (00:55 +0100)]
Hide blocked users from more places (#12733)

* Hide blocked, muted, and blocked-by users from toot favourite lists

* Hide blocked, muted, and blocked-by users from toot reblog lists

* Hide blocked, muted, and blocked-by users from followers/following (API)

* Fix tests

* Hide blocked, muted, and blocked-by users from followers/following on public pages

6 years agoFix error when fetching followers/following from REST API when user has network hidde...
Eugen Rochko [Mon, 30 Dec 2019 23:54:38 +0000 (00:54 +0100)]
Fix error when fetching followers/following from REST API when user has network hidden (#12716)

Fix #12510

6 years agoFix IDN mentions not being processed, IDN domains not being rendered (#12715)
Eugen Rochko [Mon, 30 Dec 2019 18:20:43 +0000 (19:20 +0100)]
Fix IDN mentions not being processed, IDN domains not being rendered (#12715)

This changes the REST API to return unicode domains in the `acct`
attribute instead of punycode, and to render unicode instead of
punycode on public HTML pages as well.

Fix #7812, fix #12246

6 years agoRemove unused AccountRelationshipsPresenter call in public pages (#12734)
ThibG [Mon, 30 Dec 2019 18:13:02 +0000 (19:13 +0100)]
Remove unused AccountRelationshipsPresenter call in public pages (#12734)

Those were used to show a “follow” or “unfollow” button on account grid on
public pages, but that got removed a while ago.

6 years agoFix error when searching for empty phrase (#12711)
Eugen Rochko [Mon, 30 Dec 2019 17:30:24 +0000 (18:30 +0100)]
Fix error when searching for empty phrase (#12711)

Fix #12619

6 years agoBump webpack from 4.41.2 to 4.41.5 (#12724)
dependabot-preview[bot] [Mon, 30 Dec 2019 16:49:08 +0000 (01:49 +0900)]
Bump webpack from 4.41.2 to 4.41.5 (#12724)

Bumps [webpack](https://github.com/webpack/webpack) from 4.41.2 to 4.41.5.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.41.2...v4.41.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump stackprof from 0.2.14 to 0.2.15 (#12726)
dependabot-preview[bot] [Mon, 30 Dec 2019 15:23:05 +0000 (00:23 +0900)]
Bump stackprof from 0.2.14 to 0.2.15 (#12726)

Bumps [stackprof](https://github.com/tmm1/stackprof) from 0.2.14 to 0.2.15.
- [Release notes](https://github.com/tmm1/stackprof/releases)
- [Changelog](https://github.com/tmm1/stackprof/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tmm1/stackprof/compare/v0.2.14...v0.2.15)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump pg from 1.1.4 to 1.2.0 (#12725)
dependabot-preview[bot] [Mon, 30 Dec 2019 15:21:51 +0000 (00:21 +0900)]
Bump pg from 1.1.4 to 1.2.0 (#12725)

Bumps [pg](https://github.com/ged/ruby-pg) from 1.1.4 to 1.2.0.
- [Release notes](https://github.com/ged/ruby-pg/releases)
- [Changelog](https://github.com/ged/ruby-pg/blob/master/History.rdoc)
- [Commits](https://github.com/ged/ruby-pg/compare/v1.1.4...v1.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump redis-namespace from 1.6.0 to 1.7.0 (#12727)
dependabot-preview[bot] [Mon, 30 Dec 2019 15:16:45 +0000 (00:16 +0900)]
Bump redis-namespace from 1.6.0 to 1.7.0 (#12727)

Bumps [redis-namespace](https://github.com/resque/redis-namespace) from 1.6.0 to 1.7.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.6.0...v1.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump faker from 2.9.0 to 2.10.0 (#12728)
dependabot-preview[bot] [Mon, 30 Dec 2019 15:15:16 +0000 (00:15 +0900)]
Bump faker from 2.9.0 to 2.10.0 (#12728)

Bumps [faker](https://github.com/faker-ruby/faker) from 2.9.0 to 2.10.0.
- [Release notes](https://github.com/faker-ruby/faker/releases)
- [Changelog](https://github.com/faker-ruby/faker/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faker-ruby/faker/compare/v2.9.0...v2.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump react-test-renderer from 16.11.0 to 16.12.0 (#12721)
dependabot-preview[bot] [Mon, 30 Dec 2019 15:14:42 +0000 (00:14 +0900)]
Bump react-test-renderer from 16.11.0 to 16.12.0 (#12721)

Bumps [react-test-renderer](https://github.com/facebook/react/tree/HEAD/packages/react-test-renderer) from 16.11.0 to 16.12.0.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v16.12.0/packages/react-test-renderer)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump derailed_benchmarks from 1.4.2 to 1.4.3 (#12729)
dependabot-preview[bot] [Mon, 30 Dec 2019 15:13:25 +0000 (00:13 +0900)]
Bump derailed_benchmarks from 1.4.2 to 1.4.3 (#12729)

Bumps [derailed_benchmarks](https://github.com/schneems/derailed_benchmarks) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/schneems/derailed_benchmarks/releases)
- [Changelog](https://github.com/schneems/derailed_benchmarks/blob/master/CHANGELOG.md)
- [Commits](https://github.com/schneems/derailed_benchmarks/compare/v1.4.2...v1.4.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump is-nan from 1.2.1 to 1.3.0 (#12723)
dependabot-preview[bot] [Mon, 30 Dec 2019 15:07:27 +0000 (00:07 +0900)]
Bump is-nan from 1.2.1 to 1.3.0 (#12723)

Bumps [is-nan](https://github.com/es-shims/is-nan) from 1.2.1 to 1.3.0.
- [Release notes](https://github.com/es-shims/is-nan/releases)
- [Changelog](https://github.com/es-shims/is-nan/blob/master/CHANGELOG.md)
- [Commits](https://github.com/es-shims/is-nan/compare/v1.2.1...v1.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump rack-cors from 1.1.0 to 1.1.1 (#12730)
dependabot-preview[bot] [Mon, 30 Dec 2019 14:58:24 +0000 (23:58 +0900)]
Bump rack-cors from 1.1.0 to 1.1.1 (#12730)

Bumps [rack-cors](https://github.com/cyu/rack-cors) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/cyu/rack-cors/releases)
- [Changelog](https://github.com/cyu/rack-cors/blob/master/CHANGELOG.md)
- [Commits](https://github.com/cyu/rack-cors/compare/v1.1.0...v1.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump terser-webpack-plugin from 2.2.2 to 2.3.1 (#12722)
dependabot-preview[bot] [Mon, 30 Dec 2019 14:56:23 +0000 (23:56 +0900)]
Bump terser-webpack-plugin from 2.2.2 to 2.3.1 (#12722)

Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin) from 2.2.2 to 2.3.1.
- [Release notes](https://github.com/webpack-contrib/terser-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.2.2...v2.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump @babel/core from 7.7.5 to 7.7.7 (#12720)
dependabot-preview[bot] [Mon, 30 Dec 2019 14:55:03 +0000 (23:55 +0900)]
Bump @babel/core from 7.7.5 to 7.7.7 (#12720)

Bumps [@babel/core](https://github.com/babel/babel) from 7.7.5 to 7.7.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.7.5...v7.7.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump redux from 4.0.4 to 4.0.5 (#12719)
dependabot-preview[bot] [Mon, 30 Dec 2019 14:54:43 +0000 (23:54 +0900)]
Bump redux from 4.0.4 to 4.0.5 (#12719)

Bumps [redux](https://github.com/reduxjs/redux) from 4.0.4 to 4.0.5.
- [Release notes](https://github.com/reduxjs/redux/releases)
- [Changelog](https://github.com/reduxjs/redux/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reduxjs/redux/compare/v4.0.4...v4.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump eslint from 6.7.2 to 6.8.0 (#12717)
dependabot-preview[bot] [Mon, 30 Dec 2019 12:54:04 +0000 (21:54 +0900)]
Bump eslint from 6.7.2 to 6.8.0 (#12717)

Bumps [eslint](https://github.com/eslint/eslint) from 6.7.2 to 6.8.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/v6.7.2...v6.8.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoUpgrade Node v12 in Dockerfile (#12703)
Shlee [Mon, 30 Dec 2019 06:41:40 +0000 (14:41 +0800)]
Upgrade Node v12 in Dockerfile (#12703)

6 years agoFix settings pages being cacheable by the browser (#12714)
Eugen Rochko [Mon, 30 Dec 2019 03:38:30 +0000 (04:38 +0100)]
Fix settings pages being cacheable by the browser (#12714)

Fix #12255

6 years agoFix HTML error pages being returned when JSON is expected (#12713)
Eugen Rochko [Mon, 30 Dec 2019 03:38:18 +0000 (04:38 +0100)]
Fix HTML error pages being returned when JSON is expected (#12713)

Fix #12509
See also #12214

6 years agoFix undefined error regression in status component in web UI (#12712)
Eugen Rochko [Mon, 30 Dec 2019 02:55:11 +0000 (03:55 +0100)]
Fix undefined error regression in status component in web UI (#12712)

Regression from #12661

6 years agoFix backups stopping due to read timeouts (#12281)
chr v1.x [Mon, 30 Dec 2019 02:17:54 +0000 (18:17 -0800)]
Fix backups stopping due to read timeouts (#12281)

* Make BackupService resilient to read timeouts

If an attachment read times out, assume that the resources is
inaccessible and continue the backup without it. This fixes #12280.

* Both errors on one line

6 years agoCircleci - Upgrade to Buster Images (#12705)
Shlee [Sun, 29 Dec 2019 16:00:43 +0000 (00:00 +0800)]
Circleci - Upgrade to Buster Images (#12705)

* Update config.yml

* Update Gemfile.lock

6 years agoFix shortNumberFormat to within 3 chars without units (#12706)
Takeshi Umeda [Sun, 29 Dec 2019 15:59:25 +0000 (00:59 +0900)]
Fix shortNumberFormat to within 3 chars without units (#12706)

6 years agoFix batch actions on non-pending tags in admin interface (#12537)
ThibG [Sun, 29 Dec 2019 04:41:26 +0000 (05:41 +0100)]
Fix batch actions on non-pending tags in admin interface (#12537)

- Allow batch actions on unreviewed tags
- Hide checkboxes when batch actions aren't available

6 years agoSummary: fix slowness due to layout thrashing when reloading a large … (#12661)
Matt Panaro [Sun, 29 Dec 2019 04:39:48 +0000 (23:39 -0500)]
Summary: fix slowness due to layout thrashing when reloading a large … (#12661)

* Summary: fix slowness due to layout thrashing when reloading a large set of status updates

in order to limit the maximum size of a status in a list view (e.g. the home timeline), so as to avoid having to scroll all the way through an abnormally large status update (see https://github.com/tootsuite/mastodon/pull/8205), the following steps are taken:
•the element containing the status is rendered in the browser
•its height is calculated, to determine if it exceeds the maximum height threshold.
Unfortunately for performance, these steps are carried out in the componentDidMount(/Update) method, which also performs style modifications on the element.  The combination of  height request and style modification during javascript evaluation in the browser leads to layout-thrashing, where the elements are repeatedly re-laid-out (see https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing & https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Performance_best_practices_for_Firefox_fe_engineers).
The solution implemented here is to memoize the collapsed state in Redux the first time the status is seen (e.g. when fetched as part of a small batch, to populate the home timeline) , so that on subsequent re-renders, the value can be queried, rather than recalculated.  This strategy is derived from https://github.com/tootsuite/mastodon/pull/4439 & https://github.com/tootsuite/mastodon/pull/4909, and should resolve https://github.com/tootsuite/mastodon/issues/12455.

Andrew Lin (https://github.com/onethreeseven) is thanked for his assistance in root cause analysis and solution brainstorming

* remove getSnapshotBeforeUpdate from status

* remove componentWillUnmount from status

* persist last-intersected status update and restore when ScrollableList is restored

e.g. when navigating from home-timeline to a status conversational  thread and <Back again

* cache currently-viewing status id to avoid calling redux with identical value

* refactor collapse toggle to pass explicit boolean

6 years agoFix old migrations failing because of strong_migrations update (#12692)
ThibG [Sun, 29 Dec 2019 04:39:08 +0000 (05:39 +0100)]
Fix old migrations failing because of strong_migrations update (#12692)

Fixes #12690

The `strong_migrations` update from ba2eac8824a85aa9541f8070ed7bcd22b9982cc8
introduced a check for `change_column_null` specific to Postgres. This rejects
old migrations.

This commit just wraps old migrations with `safety_assured` to bypass this
check. Alternatives would have been to:
- Disable that check entirely (a possibility added in that same
  `strong_migrations` version) for Mastodon, but it makes sense to write new
  migrations without such a strong lock.
- Rewrite the old migrations to do it in a way that do not require an exclusive
  lock. I thought fixing those old migrations for performance wasn't worth the
  pain. Also, if I understand correctly, the next version of
  `strong_migrations` is going to include a helper to do that. We could update
  those migrations at that point.

6 years ago[Security] Bump handlebars from 4.2.0 to 4.5.3 (#12694)
dependabot-preview[bot] [Fri, 27 Dec 2019 02:41:55 +0000 (11:41 +0900)]
[Security] Bump handlebars from 4.2.0 to 4.5.3 (#12694)

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.2.0 to 4.5.3. **This update includes a security fix.**
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.2.0...v4.5.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump @babel/runtime from 7.7.6 to 7.7.7 (#12670)
dependabot-preview[bot] [Wed, 25 Dec 2019 00:15:31 +0000 (09:15 +0900)]
Bump @babel/runtime from 7.7.6 to 7.7.7 (#12670)

Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime) from 7.7.6 to 7.7.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.7.7/packages/babel-runtime)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump enzyme from 3.10.0 to 3.11.0 (#12675)
dependabot-preview[bot] [Wed, 25 Dec 2019 00:15:03 +0000 (09:15 +0900)]
Bump enzyme from 3.10.0 to 3.11.0 (#12675)

Bumps [enzyme](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme) from 3.10.0 to 3.11.0.
- [Release notes](https://github.com/airbnb/enzyme/releases)
- [Changelog](https://github.com/airbnb/enzyme/blob/master/CHANGELOG.md)
- [Commits](https://github.com/airbnb/enzyme/commits/enzyme@3.11.0/packages/enzyme)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump object.values from 1.1.0 to 1.1.1 (#12625)
dependabot-preview[bot] [Tue, 24 Dec 2019 18:15:44 +0000 (03:15 +0900)]
Bump object.values from 1.1.0 to 1.1.1 (#12625)

Bumps [object.values](https://github.com/es-shims/Object.values) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/es-shims/Object.values/releases)
- [Changelog](https://github.com/es-shims/Object.values/blob/master/CHANGELOG.md)
- [Commits](https://github.com/es-shims/Object.values/compare/v1.1.0...v1.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump @babel/preset-env from 7.7.6 to 7.7.7 (#12672)
dependabot-preview[bot] [Tue, 24 Dec 2019 17:42:11 +0000 (02:42 +0900)]
Bump @babel/preset-env from 7.7.6 to 7.7.7 (#12672)

Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.7.6 to 7.7.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.7.6...v7.7.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump css-loader from 3.3.2 to 3.4.0 (#12673)
dependabot-preview[bot] [Tue, 24 Dec 2019 17:40:58 +0000 (02:40 +0900)]
Bump css-loader from 3.3.2 to 3.4.0 (#12673)

Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 3.3.2 to 3.4.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/v3.3.2...v3.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump mini-css-extract-plugin from 0.8.0 to 0.9.0 (#12674)
dependabot-preview[bot] [Tue, 24 Dec 2019 17:38:44 +0000 (02:38 +0900)]
Bump mini-css-extract-plugin from 0.8.0 to 0.9.0 (#12674)

Bumps [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) from 0.8.0 to 0.9.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/v0.8.0...v0.9.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump sass from 1.23.3 to 1.24.0 (#12676)
dependabot-preview[bot] [Tue, 24 Dec 2019 17:33:12 +0000 (02:33 +0900)]
Bump sass from 1.23.3 to 1.24.0 (#12676)

Bumps [sass](https://github.com/sass/dart-sass) from 1.23.3 to 1.24.0.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.23.3...1.24.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump rubocop from 0.77.0 to 0.78.0 (#12677)
dependabot-preview[bot] [Tue, 24 Dec 2019 17:27:14 +0000 (02:27 +0900)]
Bump rubocop from 0.77.0 to 0.78.0 (#12677)

Bumps [rubocop](https://github.com/rubocop-hq/rubocop) from 0.77.0 to 0.78.0.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v0.77.0...v0.78.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump array-includes from 3.1.0 to 3.1.1 (#12671)
dependabot-preview[bot] [Tue, 24 Dec 2019 17:25:51 +0000 (02:25 +0900)]
Bump array-includes from 3.1.0 to 3.1.1 (#12671)

Bumps [array-includes](https://github.com/es-shims/array-includes) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/es-shims/array-includes/releases)
- [Changelog](https://github.com/es-shims/array-includes/blob/master/CHANGELOG.md)
- [Commits](https://github.com/es-shims/array-includes/compare/v3.1.0...v3.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump faker from 2.8.1 to 2.9.0 (#12680)
dependabot-preview[bot] [Tue, 24 Dec 2019 17:25:14 +0000 (02:25 +0900)]
Bump faker from 2.8.1 to 2.9.0 (#12680)

Bumps [faker](https://github.com/faker-ruby/faker) from 2.8.1 to 2.9.0.
- [Release notes](https://github.com/faker-ruby/faker/releases)
- [Changelog](https://github.com/faker-ruby/faker/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faker-ruby/faker/compare/v2.8.1...v2.9.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump strong_migrations from 0.5.0 to 0.5.1 (#12679)
dependabot-preview[bot] [Mon, 23 Dec 2019 21:38:19 +0000 (22:38 +0100)]
Bump strong_migrations from 0.5.0 to 0.5.1 (#12679)

Bumps [strong_migrations](https://github.com/ankane/strong_migrations) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/ankane/strong_migrations/releases)
- [Changelog](https://github.com/ankane/strong_migrations/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ankane/strong_migrations/compare/v0.5.0...v0.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump rails from 5.2.4 to 5.2.4.1 (#12682)
dependabot-preview[bot] [Mon, 23 Dec 2019 21:37:35 +0000 (22:37 +0100)]
Bump rails from 5.2.4 to 5.2.4.1 (#12682)

Bumps [rails](https://github.com/rails/rails) from 5.2.4 to 5.2.4.1.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v5.2.4...v5.2.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump rack-attack from 6.2.1 to 6.2.2 (#12681)
dependabot-preview[bot] [Mon, 23 Dec 2019 21:36:06 +0000 (22:36 +0100)]
Bump rack-attack from 6.2.1 to 6.2.2 (#12681)

Bumps [rack-attack](https://github.com/kickstarter/rack-attack) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/kickstarter/rack-attack/releases)
- [Changelog](https://github.com/kickstarter/rack-attack/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kickstarter/rack-attack/compare/v6.2.1...v6.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoBump oj from 3.9.2 to 3.10.0 (#12683)
dependabot-preview[bot] [Mon, 23 Dec 2019 21:35:04 +0000 (22:35 +0100)]
Bump oj from 3.9.2 to 3.10.0 (#12683)

Bumps [oj](https://github.com/ohler55/oj) from 3.9.2 to 3.10.0.
- [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.9.2...v3.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoFix sample SAML_ACS_URL, SAML_ISSUER (#12669)
Aries [Mon, 23 Dec 2019 17:12:22 +0000 (02:12 +0900)]
Fix sample SAML_ACS_URL, SAML_ISSUER (#12669)

6 years agoUse eslint cache (#12668)
BSKY [Mon, 23 Dec 2019 06:27:55 +0000 (15:27 +0900)]
Use eslint cache (#12668)

6 years agoUpdate link to install docs (#12666)
trwnh [Sun, 22 Dec 2019 21:22:09 +0000 (15:22 -0600)]
Update link to install docs (#12666)

6 years agoCorrect the Nanobox deploy hooks for order and context (#12663)
Dan Hunsaker [Sun, 22 Dec 2019 07:55:27 +0000 (00:55 -0700)]
Correct the Nanobox deploy hooks for order and context (#12663)

One hook was actually duplicated incorrectly; this has been fixed. Another hook was re-ordered for better results in actual use.

6 years agoUse different strings on exports page (#12569)
Sasha Sorokin [Thu, 19 Dec 2019 11:47:55 +0000 (18:47 +0700)]
Use different strings on exports page (#12569)

Currently the page re-uses strings from other contexts which doesn't fit
very well - strings incorrectly lowercase-d and pluralized, when they
don't need to be, because it's a table.

This commit changes page to re-use accounts.posts_tab_heading for toots,
and admin.accounts for "Following" and "Follows". This all should look
more aesthetically pleasing.

6 years agoFix manual scrolling issue on Firefox/Windows (#12648)
ThibG [Thu, 19 Dec 2019 11:47:19 +0000 (12:47 +0100)]
Fix manual scrolling issue on Firefox/Windows (#12648)

Fixes #12607

`will-change: transform` apparently makes manual scrolling impossible on
Firefox/Windows. While this should probably be considered a Firefox bug,
`will-change: transform` seem like a very aggressive performance hint that
may possibly make the browser consume more resources than needed, especially
in multiple-column mode.

This was originally added to improve scrolling performances on mobile, but
I think this isn't necessary anymore, because of the two following reasons:
- `contain: paint` (which is implied by `contain: strict`, which we apply
  whenever the browser supports grids) should have similar effects
- in single-column mode, the scrolling container is the root element, which
  I believe is optimized in at least Chromium

Keep in mind that I have not been able to make in-depth benchmarks, and
especially not been able to try on mobile, so performances should probably
be investigated further…

6 years agofix multiple space (#12655)
Marcin Mikołajczak [Wed, 18 Dec 2019 22:39:08 +0000 (23:39 +0100)]
fix multiple space (#12655)

6 years ago[Security] Bump rack from 2.0.7 to 2.0.8 (#12654)
dependabot-preview[bot] [Wed, 18 Dec 2019 22:21:51 +0000 (07:21 +0900)]
[Security] Bump rack from 2.0.7 to 2.0.8 (#12654)

Bumps [rack](https://github.com/rack/rack) from 2.0.7 to 2.0.8. **This update includes a security fix.**
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/2.0.7...2.0.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
6 years agoFix unsafe column type change in migration (#12653)
Eugen Rochko [Wed, 18 Dec 2019 18:04:43 +0000 (19:04 +0100)]
Fix unsafe column type change in migration (#12653)

6 years agoFix custom emoji category creation silently erroring out on duplicate category (...
ThibG [Wed, 18 Dec 2019 15:56:59 +0000 (16:56 +0100)]
Fix custom emoji category creation silently erroring out on duplicate category (#12647)

Instead, just re-use the existing category if any.

Fixes #12608

6 years agoRemove unused translatable strings (#12643)
ThibG [Wed, 18 Dec 2019 15:56:39 +0000 (16:56 +0100)]
Remove unused translatable strings (#12643)

* Remove unused “salmon_url” string

* Remove more unused translatable strings

The following strings all used to be on the admin account page
but aren't used anymore: profile_url, outbox_url, followers_url, feed_url

6 years agoFix link crawler not specifying accepted content-type (#12646)
ThibG [Wed, 18 Dec 2019 15:56:06 +0000 (16:56 +0100)]
Fix link crawler not specifying accepted content-type (#12646)

The link crawler expects HTML documents, so set the `Accept`
header accordingly.

Fixes #12618