Skip to content

Commit ecf8d6f

Browse files
committed
Merge commit '637c7d464b2876765370d1143b7ba6441efb730b' into to_3.3
* commit '637c7d464b2876765370d1143b7ba6441efb730b': (698 commits) Bump version to 3.3.2 Fix spurious errors when receiving an Add activity for a private post disable legacy XSS filtering (mastodon#17289) Change mastodon:webpush:generate_vapid_key task to not require functional env (mastodon#17338) Fix response_to_recipient? CTE Fix insufficient sanitization of report comments Fix compacted JSON-LD possibly causing compatibility issues on forwarding Compact JSON-LD signed incoming activities Fix error-prone SQL queries (mastodon#15828) Change docker-compose.yml to specifically tag v3.3.1 images Bump to version 3.3.1 Save bundle config as local (mastodon#17188) Add manual GitHub Actions runs (mastodon#17000) Change workflow to push to Docker Hub (mastodon#16980) Build container image by GitHub Actions (mastodon#16973) Add more advanced migration tests Fix edge case in migration helpers that caused crash because of PostgreSQL quirks (mastodon#17398) Fix some old migration scripts (mastodon#17394) Fix filtering DMs from non-followed users (mastodon#17042) Fix upload of remote media with OpenStack Swift sometimes failing (mastodon#16998) ... # Conflicts: # CHANGELOG.md # Gemfile.lock # app/controllers/auth/sessions_controller.rb # app/controllers/concerns/sign_in_token_authentication_concern.rb # app/controllers/concerns/signature_verification.rb # app/controllers/concerns/two_factor_authentication_concern.rb # app/javascript/mastodon/components/status_action_bar.js # app/javascript/mastodon/features/getting_started/index.js # app/javascript/mastodon/locales/ja.json # app/javascript/styles/mastodon/boost.scss # app/lib/activitypub/activity/announce.rb # app/lib/activitypub/activity/create.rb # app/lib/formatter.rb # app/lib/webfinger.rb # app/models/user.rb # app/services/fan_out_on_write_service.rb # app/services/resolve_account_service.rb # app/views/statuses/_detailed_status.html.haml # app/views/statuses/_simple_status.html.haml # chart/Chart.yaml # chart/values.yaml.template # db/migrate/20200620164023_add_fixed_lowercase_index_to_accounts.rb # lib/cli.rb # lib/mastodon/maintenance_cli.rb # lib/paperclip/response_with_limit_adapter.rb # package.json # spec/controllers/auth/sessions_controller_spec.rb # spec/services/resolve_account_service_spec.rb
2 parents 6cf4667 + 637c7d4 commit ecf8d6f

934 files changed

Lines changed: 36766 additions & 11423 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,45 @@ jobs:
160160
name: Create database
161161
command: ./bin/rails db:create
162162
- run:
163-
name: Run migrations
163+
command: ./bin/rails db:migrate VERSION=20171010025614
164+
name: Run migrations up to v2.0.0
165+
- run:
166+
command: ./bin/rails tests:migrations:populate_v2
167+
name: Populate database with test data
168+
- run:
169+
command: ./bin/rails db:migrate
170+
name: Run all remaining migrations
171+
172+
test-two-step-migrations:
173+
<<: *defaults
174+
docker:
175+
- image: circleci/ruby:2.7-buster-node
176+
environment: *ruby_environment
177+
- image: circleci/postgres:12.2
178+
environment:
179+
POSTGRES_USER: root
180+
POSTGRES_HOST_AUTH_METHOD: trust
181+
- image: circleci/redis:5-alpine
182+
steps:
183+
- *attach_workspace
184+
- *install_system_dependencies
185+
- run:
186+
command: ./bin/rails db:create
187+
name: Create database
188+
- run:
189+
command: ./bin/rails db:migrate VERSION=20171010025614
190+
name: Run migrations up to v2.0.0
191+
- run:
192+
command: ./bin/rails tests:migrations:populate_v2
193+
name: Populate database with test data
194+
- run:
195+
command: ./bin/rails db:migrate
196+
name: Run all pre-deployment migrations
197+
evironment:
198+
SKIP_POST_DEPLOYMENT_MIGRATIONS: true
199+
- run:
164200
command: ./bin/rails db:migrate
201+
name: Run all post-deployment remaining migrations
165202

166203
test-ruby2.7:
167204
<<: *defaults
@@ -233,6 +270,9 @@ workflows:
233270
- test-migrations:
234271
requires:
235272
- install-ruby2.7
273+
- test-two-step-migrations:
274+
requires:
275+
- install-ruby2.7
236276
- test-ruby2.7:
237277
requires:
238278
- install-ruby2.7

.codeclimate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ plugins:
2727
enabled: true
2828
eslint:
2929
enabled: true
30-
channel: eslint-6
30+
channel: eslint-7
3131
rubocop:
3232
enabled: true
33-
channel: rubocop-0-82
33+
channel: rubocop-0-92
3434
sass-lint:
3535
enabled: true
3636
exclude_patterns:

.env.production.sample

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
# not demonstrate all available configuration options. Please look at
55
# https://docs.joinmastodon.org/admin/config/ for the full documentation.
66

7+
# Note that this file accepts slightly different syntax depending on whether
8+
# you are using `docker-compose` or not. In particular, if you use
9+
# `docker-compose`, the value of each declared variable will be taken verbatim,
10+
# including surrounding quotes.
11+
# See: https://github.com/mastodon/mastodon/issues/16895
12+
713
# Federation
814
# ----------
915
# This identifies your server and cannot be changed safely later

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Bug Report
33
about: If something isn't working as expected
4-
4+
labels: bug
55
---
66

77
<!-- Make sure that you are submitting a new bug that was not previously reported or already fixed -->

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: Feature Request
33
about: I have a suggestion
4-
54
---
65

76
<!-- Please use a concise and distinct title for the issue -->

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ updates:
1111
interval: weekly
1212
open-pull-requests-limit: 99
1313
allow:
14-
- dependency-type: all
14+
- dependency-type: direct
1515

1616
- package-ecosystem: bundler
1717
directory: "/"
1818
schedule:
1919
interval: weekly
2020
open-pull-requests-limit: 99
2121
allow:
22-
- dependency-type: all
22+
- dependency-type: direct

.github/workflows/build-image.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build container image
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- "main"
7+
tags:
8+
- "*"
9+
jobs:
10+
build-image:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: docker/setup-buildx-action@v1
15+
- uses: docker/login-action@v1
16+
with:
17+
username: ${{ secrets.DOCKERHUB_USERNAME }}
18+
password: ${{ secrets.DOCKERHUB_TOKEN }}
19+
- uses: docker/metadata-action@v3
20+
id: meta
21+
with:
22+
images: tootsuite/mastodon
23+
flavor: |
24+
latest=false
25+
tags: |
26+
type=edge,branch=main
27+
type=semver,pattern={{ raw }}
28+
- uses: docker/build-push-action@v2
29+
with:
30+
context: .
31+
push: true
32+
tags: ${{ steps.meta.outputs.tags }}
33+
cache-from: type=registry,ref=tootsuite/mastodon:latest
34+
cache-to: type=inline

0 commit comments

Comments
 (0)