]> cat aescling's git repositories - mastodon.git/log
mastodon.git
4 years agoMerge pull request #1673 from ClearlyClaire/glitch-soc/merge-upstream
Claire [Sun, 30 Jan 2022 21:51:32 +0000 (22:51 +0100)]
Merge pull request #1673 from ClearlyClaire/glitch-soc/merge-upstream

Merge upstream changes

4 years agoMerge branch 'main' into glitch-soc/merge-upstream
Claire [Sun, 30 Jan 2022 21:33:30 +0000 (22:33 +0100)]
Merge branch 'main' into glitch-soc/merge-upstream

4 years agoFix some old migration scripts (#17394)
Claire [Sun, 30 Jan 2022 20:38:54 +0000 (21:38 +0100)]
Fix some old migration scripts (#17394)

* Fix some old migration scripts

* Fix edge case in two-step migration from older releases

4 years agoChange public profile pages to be disabled for unconfirmed users (#17385)
Claire [Fri, 28 Jan 2022 13:24:37 +0000 (14:24 +0100)]
Change public profile pages to be disabled for unconfirmed users (#17385)

Fixes #17382

Note that unconfirmed and unapproved accounts can still be searched for
and their (empty) account retrieved using the REST API.

4 years agoMerge pull request #1668 from ClearlyClaire/glitch-soc/merge-upstream
Claire [Fri, 28 Jan 2022 08:38:44 +0000 (09:38 +0100)]
Merge pull request #1668 from ClearlyClaire/glitch-soc/merge-upstream

Merge upstream changes

4 years agoFix Sidekiq warning when pushing DMs to direct timeline
Claire [Fri, 28 Jan 2022 08:07:56 +0000 (09:07 +0100)]
Fix Sidekiq warning when pushing DMs to direct timeline

4 years agoMerge branch 'main' into glitch-soc/merge-upstream
Claire [Fri, 28 Jan 2022 07:58:32 +0000 (08:58 +0100)]
Merge branch 'main' into glitch-soc/merge-upstream

Conflicts:
- `Gemfile.lock`:
  Upstream-updated lib textually too close to glitch-soc-only dep.
  Updated like upstream.

4 years agoRefactor and improve tests (#17386)
Claire [Thu, 27 Jan 2022 23:46:42 +0000 (00:46 +0100)]
Refactor and improve tests (#17386)

* Change account and user fabricators to simplify and improve tests

- `Fabricate(:account)` implicitly fabricates an associated `user` if
  no `domain` attribute is given (an account with `domain: nil` is
  considered a local account, but no user record was created), unless
  `user: nil` is passed
- `Fabricate(:account, user: Fabricate(:user))` should still be possible
  but is discouraged.

* Fix and refactor tests

- avoid passing unneeded attributes to `Fabricate(:user)` or
  `Fabricate(:account)`
- avoid embedding `Fabricate(:user)` into a `Fabricate(:account)` or the other
  way around
- prefer `Fabricate(:user, account_attributes: …)` to
  `Fabricate(:user, account: Fabricate(:account, …)`
- also, some tests were using remote accounts with local user records, which is
  not representative of production code.

4 years agoFix Sidekiq warnings about JSON serialization (#17381)
Claire [Thu, 27 Jan 2022 23:43:56 +0000 (00:43 +0100)]
Fix Sidekiq warnings about JSON serialization (#17381)

* Fix Sidekiq warnings about JSON serialization

This occurs on every symbol argument we pass, and every symbol key in hashes,
because Sidekiq expects strings instead.

See https://github.com/mperham/sidekiq/pull/5071

We do not need to change how workers parse their arguments because this has
not changed and we were already converting to symbols adequately or using
`with_indifferent_access`.

* Set Sidekiq to raise on unsafe arguments in test mode

In order to more easily catch issues that would produce warnings in production
code.

4 years agoFix some old database migrations (#17379)
Claire [Thu, 27 Jan 2022 17:13:41 +0000 (18:13 +0100)]
Fix some old database migrations (#17379)

4 years agoBump pg from 1.2.3 to 1.3.0 (#17349)
dependabot[bot] [Thu, 27 Jan 2022 11:26:40 +0000 (20:26 +0900)]
Bump pg from 1.2.3 to 1.3.0 (#17349)

Bumps [pg](https://github.com/ged/ruby-pg) from 1.2.3 to 1.3.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.2.3...v1.3.0)

---
updated-dependencies:
- dependency-name: pg
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump axios from 0.24.0 to 0.25.0 (#17354)
dependabot[bot] [Thu, 27 Jan 2022 11:26:18 +0000 (20:26 +0900)]
Bump axios from 0.24.0 to 0.25.0 (#17354)

Bumps [axios](https://github.com/axios/axios) from 0.24.0 to 0.25.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.24.0...v0.25.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump rdf-normalize from 0.4.0 to 0.5.0 (#17226)
dependabot[bot] [Thu, 27 Jan 2022 11:25:18 +0000 (20:25 +0900)]
Bump rdf-normalize from 0.4.0 to 0.5.0 (#17226)

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

---
updated-dependencies:
- dependency-name: rdf-normalize
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoMerge branch 'main' into glitch-soc/merge-upstream
Claire [Wed, 26 Jan 2022 21:32:21 +0000 (22:32 +0100)]
Merge branch 'main' into glitch-soc/merge-upstream

Conflicts:
- `config/environments/production.rb`:
  Upstream changed a header but we had different default headers.
  Applied the same change, and also dropped HSTS headers redundant with
  Rails'.

4 years agoFix local distribution of edited statuses (#17380)
Claire [Wed, 26 Jan 2022 19:53:50 +0000 (20:53 +0100)]
Fix local distribution of edited statuses (#17380)

Because `FanOutOnWriteService#update?` was broken, edits were considered as new
toots and a regular `update` payload was sent.

4 years agoAdd healthcheck for sidekiq (#17365)
Su Yang [Wed, 26 Jan 2022 17:08:49 +0000 (01:08 +0800)]
Add healthcheck for sidekiq (#17365)

4 years agoFix poll updates being saved as status edits (#17373)
Eugen Rochko [Wed, 26 Jan 2022 17:05:39 +0000 (18:05 +0100)]
Fix poll updates being saved as status edits (#17373)

Fix #17344

4 years agoMerge pull request #1667 from ClearlyClaire/glitch-soc/fixes/hcaptcha-text
Claire [Wed, 26 Jan 2022 13:24:10 +0000 (14:24 +0100)]
Merge pull request #1667 from ClearlyClaire/glitch-soc/fixes/hcaptcha-text

Improve explanations around the hCaptcha feature

4 years agoAdd link to /about/more to the CAPTCHA verification page
Claire [Wed, 26 Jan 2022 13:09:11 +0000 (14:09 +0100)]
Add link to /about/more to the CAPTCHA verification page

4 years agoAdd some explanation text on the CAPTCHA confirmation page
Claire [Wed, 26 Jan 2022 12:24:51 +0000 (13:24 +0100)]
Add some explanation text on the CAPTCHA confirmation page

4 years agoAdd mention of accessibility issues to hCaptcha option in admin page
Claire [Wed, 26 Jan 2022 10:13:38 +0000 (11:13 +0100)]
Add mention of accessibility issues to hCaptcha option in admin page

4 years agoMerge pull request #1665 from ClearlyClaire/glitch-soc/features/hcaptcha
Claire [Tue, 25 Jan 2022 23:13:24 +0000 (00:13 +0100)]
Merge pull request #1665 from ClearlyClaire/glitch-soc/features/hcaptcha

Add optional hCaptcha support

4 years agoChange CAPTCHA handling to be only on email verification
Claire [Tue, 25 Jan 2022 22:56:57 +0000 (23:56 +0100)]
Change CAPTCHA handling to be only on email verification

This simplifies the implementation considerably, and while not providing
ideal UX, it's the most flexible approach.

4 years agoAdd ability to set hCaptcha either on registration form or on e-mail validation
Claire [Tue, 25 Jan 2022 21:37:12 +0000 (22:37 +0100)]
Add ability to set hCaptcha either on registration form or on e-mail validation

Upshot of CAPTCHA on e-mail validation is it does not need to break the in-band
registration API.

4 years agoDisable `registrations` flag in /api/v1/instance when CAPTCHA is enabled
Claire [Tue, 25 Jan 2022 12:54:11 +0000 (13:54 +0100)]
Disable `registrations` flag in /api/v1/instance when CAPTCHA is enabled

This is to avoid apps trying and failing at using the registrations API,
which does not let us require a CAPTCHA and cannot be clearly signaled as
unavailable.

4 years agoBump sass from 1.48.0 to 1.49.0 (#17352)
dependabot[bot] [Tue, 25 Jan 2022 12:25:26 +0000 (21:25 +0900)]
Bump sass from 1.48.0 to 1.49.0 (#17352)

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

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump json-ld-preloaded from 3.1.6 to 3.2.0 (#17353)
dependabot[bot] [Tue, 25 Jan 2022 12:23:42 +0000 (21:23 +0900)]
Bump json-ld-preloaded from 3.1.6 to 3.2.0 (#17353)

Bumps [json-ld-preloaded](https://github.com/ruby-rdf/json-ld-preloaded) from 3.1.6 to 3.2.0.
- [Release notes](https://github.com/ruby-rdf/json-ld-preloaded/releases)
- [Commits](https://github.com/ruby-rdf/json-ld-preloaded/compare/3.1.6...3.2.0)

---
updated-dependencies:
- dependency-name: json-ld-preloaded
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump fabrication from 2.23.1 to 2.24.0 (#17356)
dependabot[bot] [Tue, 25 Jan 2022 12:22:51 +0000 (21:22 +0900)]
Bump fabrication from 2.23.1 to 2.24.0 (#17356)

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

---
updated-dependencies:
- dependency-name: fabrication
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump sidekiq from 6.3.1 to 6.4.0 (#17350)
dependabot[bot] [Tue, 25 Jan 2022 12:22:10 +0000 (21:22 +0900)]
Bump sidekiq from 6.3.1 to 6.4.0 (#17350)

Bumps [sidekiq](https://github.com/mperham/sidekiq) from 6.3.1 to 6.4.0.
- [Release notes](https://github.com/mperham/sidekiq/releases)
- [Changelog](https://github.com/mperham/sidekiq/blob/main/Changes.md)
- [Commits](https://github.com/mperham/sidekiq/compare/v6.3.1...v6.4.0)

---
updated-dependencies:
- dependency-name: sidekiq
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump @babel/plugin-transform-runtime from 7.16.8 to 7.16.10 (#17361)
dependabot[bot] [Tue, 25 Jan 2022 11:52:40 +0000 (20:52 +0900)]
Bump @babel/plugin-transform-runtime from 7.16.8 to 7.16.10 (#17361)

Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime) from 7.16.8 to 7.16.10.
- [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.16.10/packages/babel-plugin-transform-runtime)

---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-runtime"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump cld3 from 3.4.3 to 3.4.4 (#17357)
dependabot[bot] [Tue, 25 Jan 2022 11:48:05 +0000 (20:48 +0900)]
Bump cld3 from 3.4.3 to 3.4.4 (#17357)

Bumps [cld3](https://github.com/akihikodaki/cld3-ruby) from 3.4.3 to 3.4.4.
- [Release notes](https://github.com/akihikodaki/cld3-ruby/releases)
- [Commits](https://github.com/akihikodaki/cld3-ruby/compare/v3.4.3...v3.4.4)

---
updated-dependencies:
- dependency-name: cld3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump aws-sdk-s3 from 1.111.1 to 1.111.3 (#17368)
dependabot[bot] [Tue, 25 Jan 2022 11:46:52 +0000 (20:46 +0900)]
Bump aws-sdk-s3 from 1.111.1 to 1.111.3 (#17368)

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

---
updated-dependencies:
- dependency-name: aws-sdk-s3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump bootsnap from 1.10.1 to 1.10.2 (#17367)
dependabot[bot] [Tue, 25 Jan 2022 11:45:45 +0000 (20:45 +0900)]
Bump bootsnap from 1.10.1 to 1.10.2 (#17367)

Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.10.1 to 1.10.2.
- [Release notes](https://github.com/Shopify/bootsnap/releases)
- [Changelog](https://github.com/Shopify/bootsnap/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Shopify/bootsnap/compare/v1.10.1...v1.10.2)

---
updated-dependencies:
- dependency-name: bootsnap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump node-fetch from 2.6.1 to 2.6.7 (#17366)
dependabot[bot] [Tue, 25 Jan 2022 11:44:01 +0000 (20:44 +0900)]
Bump node-fetch from 2.6.1 to 2.6.7 (#17366)

Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump nanoid from 3.1.23 to 3.2.0 (#17342)
dependabot[bot] [Tue, 25 Jan 2022 11:41:22 +0000 (20:41 +0900)]
Bump nanoid from 3.1.23 to 3.2.0 (#17342)

Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.23 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.23...3.2.0)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump @babel/preset-env from 7.16.8 to 7.16.11 (#17358)
dependabot[bot] [Tue, 25 Jan 2022 11:39:43 +0000 (20:39 +0900)]
Bump @babel/preset-env from 7.16.8 to 7.16.11 (#17358)

Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.16.8 to 7.16.11.
- [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.16.11/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump rubocop from 1.24.1 to 1.25.0 (#17322)
dependabot[bot] [Tue, 25 Jan 2022 11:39:08 +0000 (20:39 +0900)]
Bump rubocop from 1.24.1 to 1.25.0 (#17322)

Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.24.1 to 1.25.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.24.1...v1.25.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump @babel/core from 7.16.7 to 7.16.12 (#17360)
dependabot[bot] [Tue, 25 Jan 2022 11:34:55 +0000 (20:34 +0900)]
Bump @babel/core from 7.16.7 to 7.16.12 (#17360)

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

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump rails from 6.1.4.1 to 6.1.4.4 (#17159)
dependabot[bot] [Tue, 25 Jan 2022 11:34:37 +0000 (20:34 +0900)]
Bump rails from 6.1.4.1 to 6.1.4.4 (#17159)

* Bump rails from 6.1.4.1 to 6.1.4.4

Bumps [rails](https://github.com/rails/rails) from 6.1.4.1 to 6.1.4.4.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v6.1.4.1...v6.1.4.4)

---
updated-dependencies:
- dependency-name: rails
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
* Revert marcel to 1.0.1

Avoid some regression that need to be investigated

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
4 years agoDisable captcha if registrations are disabled for various reasons
Claire [Mon, 24 Jan 2022 21:12:57 +0000 (22:12 +0100)]
Disable captcha if registrations are disabled for various reasons

4 years agoRenew Rails session ID on successful registration
Claire [Mon, 24 Jan 2022 20:52:45 +0000 (21:52 +0100)]
Renew Rails session ID on successful registration

4 years agoFix tests
Claire [Mon, 24 Jan 2022 20:36:22 +0000 (21:36 +0100)]
Fix tests

4 years agoPlease CodeClimate
Claire [Mon, 24 Jan 2022 20:29:50 +0000 (21:29 +0100)]
Please CodeClimate

4 years agoAdd optional hCaptcha support
Claire [Mon, 24 Jan 2022 18:06:19 +0000 (19:06 +0100)]
Add optional hCaptcha support

Fixes #1649

This requires setting `HCAPTCHA_SECRET_KEY` and `HCAPTCHA_SITE_KEY`, then
enabling the admin setting at
`/admin/settings/edit#form_admin_settings_captcha_enabled`

Subsequently, a hCaptcha widget will be displayed on `/about` and
`/auth/sign_up` unless:
- the user is already signed-up already
- the user has used an invite link
- the user has already solved the captcha (and registration failed for another
  reason)

The Content-Security-Policy headers are altered automatically to allow the
third-party hCaptcha scripts on `/about` and `/auth/sign_up` following the same
rules as above.

4 years agodisable legacy XSS filtering (#17289)
Wonderfall [Mon, 24 Jan 2022 12:14:26 +0000 (13:14 +0100)]
disable legacy XSS filtering (#17289)

Browsers are phasing out X-XSS-Protection, but Safari and IE still support it.

4 years agoFix link_to_login argument handling when a block is passed (#17345)
Claire [Mon, 24 Jan 2022 02:29:03 +0000 (03:29 +0100)]
Fix link_to_login argument handling when a block is passed (#17345)

4 years agoMerge pull request #1663 from ClearlyClaire/glitch-soc/merge-upstream
Claire [Sun, 23 Jan 2022 18:17:31 +0000 (19:17 +0100)]
Merge pull request #1663 from ClearlyClaire/glitch-soc/merge-upstream

Merge upstream changes

4 years ago[Glitch] Change `percent` to `rate` in retention metrics API
Claire [Sun, 23 Jan 2022 15:01:25 +0000 (16:01 +0100)]
[Glitch] Change `percent` to `rate` in retention metrics API

Port a63495230a3a28e022504f36356cd75b17b635ba to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
4 years ago[Glitch] Fix text being incorrectly pre-selected in composer textarea on /share
Claire [Sun, 23 Jan 2022 17:24:34 +0000 (18:24 +0100)]
[Glitch] Fix text being incorrectly pre-selected in composer textarea on /share

Port 3a103cd317fd56aca27fca01e03647df44e3ffd2 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
4 years agoMerge branch 'main' into glitch-soc/merge-upstream
Claire [Sun, 23 Jan 2022 17:13:55 +0000 (18:13 +0100)]
Merge branch 'main' into glitch-soc/merge-upstream

Conflicts:
- `spec/models/status_spec.rb`:
  Upstream added tests too close to glitch-soc-specific tests.
  Kept both tests.

4 years agoFix error-prone SQL queries (#15828)
Claire [Sun, 23 Jan 2022 17:10:10 +0000 (18:10 +0100)]
Fix error-prone SQL queries (#15828)

* Fix error-prone SQL queries in Account search

While this code seems to not present an actual vulnerability, one could
easily be introduced by mistake due to how the query is built.

This PR parameterises the `to_tsquery` input to make the query more robust.

* Harden code for Status#tagged_with_all and Status#tagged_with_none

Those two scopes aren't used in a way that could be vulnerable to an SQL
injection, but keeping them unchanged might be a hazard.

* Remove unneeded spaces surrounding tsquery term

* Please CodeClimate

* Move advanced_search_for SQL template to its own function

This avoids one level of indentation while making clearer that the SQL template
isn't build from all the dynamic parameters of advanced_search_for.

* Add tests covering tagged_with, tagged_with_all and tagged_with_none

* Rewrite tagged_with_none to avoid multiple joins and make it more robust

* Remove obsolete brakeman warnings

* Revert "Remove unneeded spaces surrounding tsquery term"

The two queries are not strictly equivalent.

This reverts commit 86f16c537e06c6ba4a8b250f25dcce9f049023ff.

4 years agoChange `percent` to `rate` in retention metrics API (#16910)
Claire [Sun, 23 Jan 2022 15:01:25 +0000 (16:01 +0100)]
Change `percent` to `rate` in retention metrics API (#16910)

4 years agoAdd OMNIAUTH_ONLY environment variable to enforce externa log-in (#17288)
Claire [Sun, 23 Jan 2022 14:52:58 +0000 (15:52 +0100)]
Add OMNIAUTH_ONLY environment variable to enforce externa log-in (#17288)

* Remove support for OAUTH_REDIRECT_AT_SIGN_IN

Fixes #15959

Introduced in #6540, OAUTH_REDIRECT_AT_SIGN_IN allowed skipping the log-in form
to instead redirect to the external OmniAuth login provider.

However, it did not prevent the log-in form on /about introduced by #10232 from
appearing, and completely broke with the introduction of #15228.

As I restoring that previous log-in flow without introducing a security
vulnerability may require extensive care and knowledge of how OmniAuth works,
this commit removes support for OAUTH_REDIRECT_AT_SIGN_IN instead for the time
being.

* Add OMNIAUTH_ONLY environment variable to enforce external log-in only

* Disable user registration when OMNIAUTH_ONLY is set to true

* Replace log-in links When OMNIAUTH_ONLY is set with exactly one OmniAuth provider

4 years agoRemove support for OAUTH_REDIRECT_AT_SIGN_IN (#17287)
Claire [Sun, 23 Jan 2022 14:50:41 +0000 (15:50 +0100)]
Remove support for OAUTH_REDIRECT_AT_SIGN_IN (#17287)

Fixes #15959

Introduced in #6540, OAUTH_REDIRECT_AT_SIGN_IN allowed skipping the log-in form
to instead redirect to the external OmniAuth login provider.

However, it did not prevent the log-in form on /about introduced by #10232 from
appearing, and completely broke with the introduction of #15228.

As I restoring that previous log-in flow without introducing a security
vulnerability may require extensive care and knowledge of how OmniAuth works,
this commit removes support for OAUTH_REDIRECT_AT_SIGN_IN instead for the time
being.

4 years agoRemove leftover database columns from Devise::Models::Rememberable (#17191)
Claire [Sun, 23 Jan 2022 14:46:30 +0000 (15:46 +0100)]
Remove leftover database columns from Devise::Models::Rememberable (#17191)

* Remove leftover database columns from Devise::Models::Rememberable

* Update fix-duplication maintenance script

* Improve errors/warnings in the fix-duplicates maintenance script

4 years agoRemove old duplicate index (#17245)
Claire [Sun, 23 Jan 2022 12:53:58 +0000 (13:53 +0100)]
Remove old duplicate index (#17245)

Some Mastodon versions (v1.1 and v1.2) had a duplicate index in `db/schema.rb`
without any migration script creating it. #2224 (included in v1.3) removed the
duplicate index from the file but did not provide a migration script to remove
it.

This means that any instance that was installed from v1.1 or v1.2's source code
has a duplicate index and a corresponding warning in PgHero. Instances set up
using an earlier or later Mastodon version do not have this issue.

This PR removes the duplicate index if it is present.

4 years agoFix text being incorrectly pre-selected in composer textarea on /share (#17339)
Claire [Thu, 20 Jan 2022 19:56:21 +0000 (20:56 +0100)]
Fix text being incorrectly pre-selected in composer textarea on /share (#17339)

Fixes #17295

4 years agoChange mastodon:webpush:generate_vapid_key task to not require functional env (#17338)
Claire [Thu, 20 Jan 2022 13:51:23 +0000 (14:51 +0100)]
Change mastodon:webpush:generate_vapid_key task to not require functional env (#17338)

Fixes #17297

4 years agoAdd post edited notice in admin and public UIs (#17335)
Claire [Thu, 20 Jan 2022 12:37:31 +0000 (13:37 +0100)]
Add post edited notice in admin and public UIs (#17335)

* Add edited toot flag on public pages

* Add toot edit flag to admin pages

4 years agoAdd content-type to status source in glitch-soc
Claire [Wed, 19 Jan 2022 23:02:17 +0000 (00:02 +0100)]
Add content-type to status source in glitch-soc

4 years ago[Glitch] Add support for editing for published statuses
Eugen Rochko [Wed, 19 Jan 2022 21:37:27 +0000 (22:37 +0100)]
[Glitch] Add support for editing for published statuses

Port front-end changes from 1060666c583670bb3b89ed5154e61038331e30c3 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
4 years agoMerge branch 'main' into glitch-soc/merge-upstream
Claire [Wed, 19 Jan 2022 22:52:53 +0000 (23:52 +0100)]
Merge branch 'main' into glitch-soc/merge-upstream

4 years agoMerge branch 'main' into glitch-soc/merge-upstream
Claire [Wed, 19 Jan 2022 22:19:00 +0000 (23:19 +0100)]
Merge branch 'main' into glitch-soc/merge-upstream

Conflicts:
- `app/lib/activitypub/activity/create.rb`:
  Upstream refactored how `Create` activities are handled and how values are
  extracted from `Create`d objects. This conflicted with how glitch-soc
  supported the `directMessage` flag to explicitly distinguish between
  limited and direct messages.
  Ported glitch-soc's changes to latest upstream changes.
- `app/services/fan_out_on_write_service.rb`:
  Upstream largely refactored that file and changed some of the logic.
  This conflicted with glitch-soc's handling of the direct timeline and
  the options to allow replies and boosts in public feeds.
  Ported those glitch-soc changes on top of latest upstream changes.
- `app/services/process_mentions_service.rb`:
  Upstream refactored to move mention-related ActivityPub deliveries to
  `ActivityPub::DeliveryWorker`, while glitch-soc contained an extra check
  to not send local-only toots to remote mentioned users.
  Took upstream's version, as the check is not needed anymore, since it is
  performed at the `ActivityPub::DeliveryWorker` call site already.
- `app/workers/feed_insert_worker.rb`:
  Upstream added support for `update` toot events, while glitch-soc had
  support for an extra timeline support, `direct`.
  Ported upstream changes and extended them to the `direct` timeline.

Additional changes:
- `app/lib/activitypub/parser/status_parser.rb`:
  Added code to handle the `directMessage` flag and take it into account
  to compute visibility.
- `app/lib/feed_manager.rb`:
  Extended upstream's support of `update` toot events to glitch-soc's
  `direct` timeline.

4 years agoFix error when using raw distribution worker (#17334)
Eugen Rochko [Wed, 19 Jan 2022 22:05:59 +0000 (23:05 +0100)]
Fix error when using raw distribution worker (#17334)

Regression from #16697

4 years agoFix error when processing poll updates (#17333)
Eugen Rochko [Wed, 19 Jan 2022 21:50:01 +0000 (22:50 +0100)]
Fix error when processing poll updates (#17333)

Regression from #16697

4 years agoAdd support for editing for published statuses (#16697)
Eugen Rochko [Wed, 19 Jan 2022 21:37:27 +0000 (22:37 +0100)]
Add support for editing for published statuses (#16697)

* Add support for editing for published statuses

* Fix references to stripped-out code

* Various fixes and improvements

* Further fixes and improvements

* Fix updates being potentially sent to unauthorized recipients

* Various fixes and improvements

* Fix wrong words in test

* Fix notifying accounts that were tagged but were not in the audience

* Fix mistake

4 years agoMerge pull request #1662 from ClearlyClaire/glitch-soc/merge-upstream
Claire [Wed, 19 Jan 2022 13:22:59 +0000 (14:22 +0100)]
Merge pull request #1662 from ClearlyClaire/glitch-soc/merge-upstream

Merge upstream changes

4 years agoMerge branch 'main' into glitch-soc/merge-upstream
Claire [Wed, 19 Jan 2022 11:32:44 +0000 (12:32 +0100)]
Merge branch 'main' into glitch-soc/merge-upstream

4 years agoFix NameError on ActivityPub::FetchFeaturedCollectionService (#17326)
Jeong Arm [Wed, 19 Jan 2022 03:08:46 +0000 (12:08 +0900)]
Fix NameError on ActivityPub::FetchFeaturedCollectionService (#17326)

Related: #16954

4 years agoBump json-ld from 3.1.10 to 3.2.0 (#17224)
dependabot[bot] [Wed, 19 Jan 2022 02:12:01 +0000 (11:12 +0900)]
Bump json-ld from 3.1.10 to 3.2.0 (#17224)

Bumps [json-ld](https://github.com/ruby-rdf/json-ld) from 3.1.10 to 3.2.0.
- [Release notes](https://github.com/ruby-rdf/json-ld/releases)
- [Commits](https://github.com/ruby-rdf/json-ld/compare/3.1.10...3.2.0)

---
updated-dependencies:
- dependency-name: json-ld
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump thor from 1.1.0 to 1.2.1 (#17250)
dependabot[bot] [Wed, 19 Jan 2022 02:07:37 +0000 (11:07 +0900)]
Bump thor from 1.1.0 to 1.2.1 (#17250)

Bumps [thor](https://github.com/rails/thor) from 1.1.0 to 1.2.1.
- [Release notes](https://github.com/rails/thor/releases)
- [Commits](https://github.com/rails/thor/compare/v1.1.0...v1.2.1)

---
updated-dependencies:
- dependency-name: thor
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump nokogiri from 1.12.5 to 1.13.1 (#17306)
dependabot[bot] [Wed, 19 Jan 2022 02:06:17 +0000 (11:06 +0900)]
Bump nokogiri from 1.12.5 to 1.13.1 (#17306)

Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.12.5 to 1.13.1.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.12.5...v1.13.1)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump aws-sdk-s3 from 1.109.0 to 1.111.1 (#17277)
dependabot[bot] [Wed, 19 Jan 2022 02:04:34 +0000 (11:04 +0900)]
Bump aws-sdk-s3 from 1.109.0 to 1.111.1 (#17277)

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

---
updated-dependencies:
- dependency-name: aws-sdk-s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump prop-types from 15.7.2 to 15.8.1 (#17278)
dependabot[bot] [Wed, 19 Jan 2022 02:04:24 +0000 (11:04 +0900)]
Bump prop-types from 15.7.2 to 15.8.1 (#17278)

Bumps [prop-types](https://github.com/facebook/prop-types) from 15.7.2 to 15.8.1.
- [Release notes](https://github.com/facebook/prop-types/releases)
- [Changelog](https://github.com/facebook/prop-types/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/prop-types/compare/v15.7.2...v15.8.1)

---
updated-dependencies:
- dependency-name: prop-types
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump ed25519 from 1.2.4 to 1.3.0 (#17310)
dependabot[bot] [Wed, 19 Jan 2022 02:04:11 +0000 (11:04 +0900)]
Bump ed25519 from 1.2.4 to 1.3.0 (#17310)

Bumps [ed25519](https://github.com/RubyCrypto/ed25519) from 1.2.4 to 1.3.0.
- [Release notes](https://github.com/RubyCrypto/ed25519/releases)
- [Changelog](https://github.com/RubyCrypto/ed25519/blob/main/CHANGES.md)
- [Commits](https://github.com/RubyCrypto/ed25519/compare/v1.2.4...v1.3.0)

---
updated-dependencies:
- dependency-name: ed25519
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump bootsnap from 1.9.3 to 1.10.1 (#17311)
dependabot[bot] [Wed, 19 Jan 2022 02:03:28 +0000 (11:03 +0900)]
Bump bootsnap from 1.9.3 to 1.10.1 (#17311)

Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.9.3 to 1.10.1.
- [Release notes](https://github.com/Shopify/bootsnap/releases)
- [Changelog](https://github.com/Shopify/bootsnap/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Shopify/bootsnap/compare/v1.9.3...v1.10.1)

---
updated-dependencies:
- dependency-name: bootsnap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump sass from 1.45.2 to 1.48.0 (#17315)
dependabot[bot] [Wed, 19 Jan 2022 02:01:18 +0000 (11:01 +0900)]
Bump sass from 1.45.2 to 1.48.0 (#17315)

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

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump babel-jest from 27.4.5 to 27.4.6 (#17280)
dependabot[bot] [Wed, 19 Jan 2022 01:53:39 +0000 (10:53 +0900)]
Bump babel-jest from 27.4.5 to 27.4.6 (#17280)

Bumps [babel-jest](https://github.com/facebook/jest/tree/HEAD/packages/babel-jest) from 27.4.5 to 27.4.6.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v27.4.6/packages/babel-jest)

---
updated-dependencies:
- dependency-name: babel-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump @babel/plugin-transform-runtime from 7.16.7 to 7.16.8 (#17314)
dependabot[bot] [Wed, 19 Jan 2022 01:53:26 +0000 (10:53 +0900)]
Bump @babel/plugin-transform-runtime from 7.16.7 to 7.16.8 (#17314)

Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime) from 7.16.7 to 7.16.8.
- [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.16.8/packages/babel-plugin-transform-runtime)

---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-runtime"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump ws from 8.3.0 to 8.4.2 (#17318)
dependabot[bot] [Wed, 19 Jan 2022 01:53:12 +0000 (10:53 +0900)]
Bump ws from 8.3.0 to 8.4.2 (#17318)

Bumps [ws](https://github.com/websockets/ws) from 8.3.0 to 8.4.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.3.0...8.4.2)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump rubocop-rails from 2.13.0 to 2.13.2 (#17321)
dependabot[bot] [Wed, 19 Jan 2022 01:53:03 +0000 (10:53 +0900)]
Bump rubocop-rails from 2.13.0 to 2.13.2 (#17321)

Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails) from 2.13.0 to 2.13.2.
- [Release notes](https://github.com/rubocop/rubocop-rails/releases)
- [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rails/compare/v2.13.0...v2.13.2)

---
updated-dependencies:
- dependency-name: rubocop-rails
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump redis from 4.0.1 to 4.0.2 (#17309)
dependabot[bot] [Tue, 18 Jan 2022 13:39:12 +0000 (22:39 +0900)]
Bump redis from 4.0.1 to 4.0.2 (#17309)

Bumps [redis](https://github.com/redis/node-redis) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/redis/node-redis/releases)
- [Changelog](https://github.com/redis/node-redis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/redis/node-redis/compare/redis@4.0.1...redis@4.0.2)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump bullet from 7.0.0 to 7.0.1 (#17312)
dependabot[bot] [Tue, 18 Jan 2022 13:38:54 +0000 (22:38 +0900)]
Bump bullet from 7.0.0 to 7.0.1 (#17312)

Bumps [bullet](https://github.com/flyerhzm/bullet) from 7.0.0 to 7.0.1.
- [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/7.0.0...7.0.1)

---
updated-dependencies:
- dependency-name: bullet
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump react-select from 5.2.1 to 5.2.2 (#17313)
dependabot[bot] [Tue, 18 Jan 2022 13:38:45 +0000 (22:38 +0900)]
Bump react-select from 5.2.1 to 5.2.2 (#17313)

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

---
updated-dependencies:
- dependency-name: react-select
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump @babel/preset-env from 7.16.7 to 7.16.8 (#17317)
dependabot[bot] [Tue, 18 Jan 2022 13:38:12 +0000 (22:38 +0900)]
Bump @babel/preset-env from 7.16.7 to 7.16.8 (#17317)

Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.16.7 to 7.16.8.
- [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.16.8/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump pkg-config from 1.4.6 to 1.4.7 (#17307)
dependabot[bot] [Tue, 18 Jan 2022 13:36:39 +0000 (22:36 +0900)]
Bump pkg-config from 1.4.6 to 1.4.7 (#17307)

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

---
updated-dependencies:
- dependency-name: pkg-config
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump active_model_serializers from 0.10.12 to 0.10.13 (#17305)
dependabot[bot] [Tue, 18 Jan 2022 13:36:22 +0000 (22:36 +0900)]
Bump active_model_serializers from 0.10.12 to 0.10.13 (#17305)

Bumps [active_model_serializers](https://github.com/rails-api/active_model_serializers) from 0.10.12 to 0.10.13.
- [Release notes](https://github.com/rails-api/active_model_serializers/releases)
- [Changelog](https://github.com/rails-api/active_model_serializers/blob/v0.10.13/CHANGELOG.md)
- [Commits](https://github.com/rails-api/active_model_serializers/compare/v0.10.12...v0.10.13)

---
updated-dependencies:
- dependency-name: active_model_serializers
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump follow-redirects from 1.14.4 to 1.14.7 (#17285)
dependabot[bot] [Tue, 18 Jan 2022 13:36:11 +0000 (22:36 +0900)]
Bump follow-redirects from 1.14.4 to 1.14.7 (#17285)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.4 to 1.14.7.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.4...v1.14.7)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump jest from 27.4.5 to 27.4.7 (#17279)
dependabot[bot] [Tue, 18 Jan 2022 13:35:31 +0000 (22:35 +0900)]
Bump jest from 27.4.5 to 27.4.7 (#17279)

Bumps [jest](https://github.com/facebook/jest) from 27.4.5 to 27.4.7.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.4.5...v27.4.7)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump rspec_junit_formatter from 0.5.0 to 0.5.1 (#17275)
dependabot[bot] [Tue, 18 Jan 2022 13:35:15 +0000 (22:35 +0900)]
Bump rspec_junit_formatter from 0.5.0 to 0.5.1 (#17275)

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

---
updated-dependencies:
- dependency-name: rspec_junit_formatter
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump rubocop-rails from 2.13.0 to 2.13.1 (#17274)
dependabot[bot] [Tue, 18 Jan 2022 13:35:02 +0000 (22:35 +0900)]
Bump rubocop-rails from 2.13.0 to 2.13.1 (#17274)

Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails) from 2.13.0 to 2.13.1.
- [Release notes](https://github.com/rubocop/rubocop-rails/releases)
- [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rails/compare/v2.13.0...v2.13.1)

---
updated-dependencies:
- dependency-name: rubocop-rails
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoBump scenic from 1.5.4 to 1.5.5 (#17193)
dependabot[bot] [Tue, 18 Jan 2022 13:34:45 +0000 (22:34 +0900)]
Bump scenic from 1.5.4 to 1.5.5 (#17193)

Bumps [scenic](https://github.com/scenic-views/scenic) from 1.5.4 to 1.5.5.
- [Release notes](https://github.com/scenic-views/scenic/releases)
- [Changelog](https://github.com/scenic-views/scenic/blob/main/CHANGELOG.md)
- [Commits](https://github.com/scenic-views/scenic/compare/v1.5.4...v1.5.5)

---
updated-dependencies:
- dependency-name: scenic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoMerge pull request #1660 from ClearlyClaire/glitch-soc/features/themes-multiple-packs
Claire [Mon, 17 Jan 2022 23:18:07 +0000 (00:18 +0100)]
Merge pull request #1660 from ClearlyClaire/glitch-soc/features/themes-multiple-packs

Refactor glitch-soc's theme handling

4 years agoPlease CodeClimate
Claire [Mon, 17 Jan 2022 12:06:06 +0000 (13:06 +0100)]
Please CodeClimate

4 years agoMove controller theming code to concern
Claire [Mon, 17 Jan 2022 11:50:02 +0000 (12:50 +0100)]
Move controller theming code to concern

4 years agoFix `pinned` attribute not being set for private self-posts (#17304)
Claire [Mon, 17 Jan 2022 10:59:46 +0000 (11:59 +0100)]
Fix `pinned` attribute not being set for private self-posts (#17304)

4 years ago[Glitch] Add notifications for statuses deleted by moderators
Eugen Rochko [Mon, 17 Jan 2022 08:41:33 +0000 (09:41 +0100)]
[Glitch] Add notifications for statuses deleted by moderators

Port front-end changes from 14f436c457560862fafabd753eb314c8b8a8e674 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
4 years agoMerge branch 'main' into glitch-soc/merge-upstream
Claire [Mon, 17 Jan 2022 09:45:25 +0000 (10:45 +0100)]
Merge branch 'main' into glitch-soc/merge-upstream

Conflicts:
- `app/views/admin/reports/show.html.haml`:
  Conflicts due to glitch-soc's theming system.

4 years agoMerge pull request #1661 from ClearlyClaire/glitch-soc/merge-upstream
Claire [Mon, 17 Jan 2022 09:01:02 +0000 (10:01 +0100)]
Merge pull request #1661 from ClearlyClaire/glitch-soc/merge-upstream

Merge upstream changes

4 years agoFix `pinned` attribute not being set for private self-posts
Claire [Mon, 17 Jan 2022 08:07:45 +0000 (09:07 +0100)]
Fix `pinned` attribute not being set for private self-posts