Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge upstream changes up to 34cd7d6585992c03298c175ab5d22ad059b58cdb #2937

Merged
merged 69 commits into from
Jan 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
b0634b2
Add helpers for ios/android app store links in welcome mailer (#33475)
mjankowski Jan 6, 2025
efcd4ea
Reference value constants from specs (#33479)
mjankowski Jan 6, 2025
dd937e1
Use `distributable?` method in admin/status_policy method (#33477)
mjankowski Jan 7, 2025
edf62d4
Add `self_editing?` method to user role policy (#33476)
mjankowski Jan 7, 2025
9715bd7
New Crowdin Translations (automated) (#33480)
github-actions[bot] Jan 7, 2025
8233293
Update DefinitelyTyped types (non-major) (#33220)
renovate[bot] Jan 7, 2025
c12b85e
Fix Style/MultipleComparison (#33313)
nschonni Jan 7, 2025
82e046e
Fix preview card sizing in “Author attribution” in profile settings (…
ClearlyClaire Jan 7, 2025
927c7bb
Use ruby version 3.4.1 (#33304)
mjankowski Jan 7, 2025
fdfbf6e
Set statement timeout to zero in maintenance CLI (#33484)
mjankowski Jan 7, 2025
fd7bcfa
Update dependency rubocop-performance to v1.23.1 (#33486)
renovate[bot] Jan 7, 2025
7d6fd68
Update dependency test-prof to v1.4.4 (#33487)
renovate[bot] Jan 7, 2025
5c4e224
Comment sidekiq build in docker compose (#33483)
NoelDeMartin Jan 7, 2025
e0863fd
Update peter-evans/create-pull-request action to v7.0.6 (#33492)
renovate[bot] Jan 7, 2025
5bbcb1b
Update dependency fastimage to v2.4.0 (#33491)
renovate[bot] Jan 7, 2025
bbe9dcf
Update dependency aws-sdk-s3 to v1.177.0 (#33490)
renovate[bot] Jan 7, 2025
7ad44e2
Remove role color highlighting from custom css (#33493)
mjankowski Jan 7, 2025
b3243ef
Refer to constant values from `api/v1/apps` request spec (#33488)
mjankowski Jan 7, 2025
c0264c8
Extend custom CSS cache time with digest paths (#33207)
mjankowski Jan 8, 2025
c3fc12c
Update dependency rubyzip to v2.4.1 (#33494)
renovate[bot] Jan 8, 2025
b6c2923
Convert `settings/migration` spec controller->system (#33496)
mjankowski Jan 8, 2025
0c69051
Convert `auth/challenges` spec controller->request (#33495)
mjankowski Jan 8, 2025
35e5713
New Crowdin Translations (automated) (#33500)
github-actions[bot] Jan 8, 2025
ee1cbda
Update opentelemetry-ruby (non-major) (#33501)
renovate[bot] Jan 8, 2025
242221c
Update dependency connection_pool to v2.5.0 (#33503)
renovate[bot] Jan 8, 2025
5a14206
Update opentelemetry-ruby (non-major) (#33506)
renovate[bot] Jan 8, 2025
6a351e2
Update dependency core-js to v3.40.0 (#33504)
renovate[bot] Jan 8, 2025
67a8d46
Unpin peter-evans/create-pull-request to v7 (#30817)
nschonni Jan 8, 2025
a16d83f
Update Node.js to 22.13 (#33502)
renovate[bot] Jan 8, 2025
d34e9ea
Update dependency @reduxjs/toolkit to v2.5.0 (#33102)
renovate[bot] Jan 8, 2025
2c36283
Refresh `README.md` (#32143)
Lamparter Jan 8, 2025
15669fc
Include time portion in formatted datetimes when provided (#33191)
ThisIsMissEm Jan 8, 2025
f22a2aa
Add `Account#remote?` query method (#33508)
mjankowski Jan 8, 2025
78e0d6a
Extract development section from top-level readme into standalone doc…
mjankowski Jan 8, 2025
1bf6195
Fix use of deprecated `Iterable.isIndexed` from immutable (#33510)
ClearlyClaire Jan 8, 2025
6b1ea8d
Require specific subtype of `formatMessage` in `timeAgoString` (#33511)
ClearlyClaire Jan 8, 2025
3c7f3b1
Update formatjs monorepo (#32774)
renovate[bot] Jan 8, 2025
1ce2dc3
Target same browsers in development and production (#33513)
c960657 Jan 9, 2025
ce1501c
Add "Account::Search" shared example for use in `Account` spec (#33507)
mjankowski Jan 9, 2025
f4b463e
Use `response.parsed_body` for error view application controller spec…
mjankowski Jan 9, 2025
4148b68
Remove `render_template` from remote interaction helper request spec …
mjankowski Jan 9, 2025
cbae00a
Remove `render_template` from accounts request spec (#33519)
mjankowski Jan 9, 2025
4e2c15b
New Crowdin Translations (automated) (#33522)
github-actions[bot] Jan 9, 2025
8e2c642
Do now swallow response body on persistent connection (#32729)
c960657 Jan 9, 2025
b0fbb71
Update dependency jsdom to v26 (#33521)
renovate[bot] Jan 9, 2025
51a9242
Update dependency react-intl to v7 (#32954)
renovate[bot] Jan 9, 2025
91c75a6
Re-introduce `application_id` in `ScheduledStatusSerializer` (#33505)
ClearlyClaire Jan 9, 2025
c6c8e7e
Fix last paginated notification group only including data on a single…
ClearlyClaire Jan 9, 2025
a8b2b47
Add timestamp to all announcements in Web UI (#18329)
ClearlyClaire Jan 9, 2025
9b8d1fb
Add `Account#actor_type_application?` query method (#33525)
mjankowski Jan 9, 2025
3a4aed9
Rename `app/helpers/jsonld_helper.rb` to `app/helpers/json_ld_helper.…
mjankowski Jan 9, 2025
54e2030
Add `AccountWarning#appeal_eligible?` method (#33526)
mjankowski Jan 9, 2025
f98972e
Use `with_options` for Account `if: :local?` validation group (#33529)
mjankowski Jan 10, 2025
846c89b
New Crowdin Translations (automated) (#33541)
github-actions[bot] Jan 10, 2025
4fb3dc0
Extract `CSS_COLORS` constant for `UserRole` regex validation (#33532)
mjankowski Jan 10, 2025
2499cd0
Add `duplicate_record` helper to maintenance CLI spec (#33536)
mjankowski Jan 10, 2025
8d4ca95
Convert `admin/follow_recommendations` spec controller->system (#33533)
mjankowski Jan 10, 2025
d155763
Update dependency react-textarea-autosize to v8.5.7 (#33542)
renovate[bot] Jan 10, 2025
1d680f1
Update dependency rubocop to v1.70.0 (#33543)
renovate[bot] Jan 10, 2025
a8b0152
Convert `admin/terms_of_service/histories` spec controller->system (#…
mjankowski Jan 10, 2025
e0f6292
Update dependency uuid to v11.0.5 (#33538)
renovate[bot] Jan 10, 2025
4f6edc7
Use `in_order_of` in `trends/*` classes (#33531)
mjankowski Jan 10, 2025
2cfc2a7
Add `build_object` method for defaults in `AP::Activity::Create` spec…
mjankowski Jan 10, 2025
34cd7d6
Use `config_for` for `Mastodon::Version` metadata/prerelease values (…
mjankowski Jan 10, 2025
155dc4b
Merge commit '34cd7d6585992c03298c175ab5d22ad059b58cdb' into glitch-s…
ClearlyClaire Jan 10, 2025
19b9884
[Glitch] Fix preview card sizing in “Author attribution” in profile s…
ClearlyClaire Jan 7, 2025
fb48fc4
[Glitch] Include time portion in formatted datetimes when provided
ThisIsMissEm Jan 8, 2025
00f410a
[Glitch] Fix use of deprecated `Iterable.isIndexed` from immutable
ClearlyClaire Jan 8, 2025
0270bd2
[Glitch] Require specific subtype of `formatMessage` in `timeAgoString`
ClearlyClaire Jan 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
[production]
defaults
> 0.2%
firefox >= 78
ios >= 15.6
not dead
not OperaMini all

[development]
supports es6-module
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/2.server_bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ body:
Any additional technical details you may have, like logs or error traces
value: |
If this is happening on your own Mastodon server, please fill out those:
- Ruby version: (from `ruby --version`, eg. v3.3.5)
- Ruby version: (from `ruby --version`, eg. v3.4.1)
- Node.js version: (from `node --version`, eg. v20.18.0)
validations:
required: false
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/3.troubleshooting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ body:
value: |
Please at least include those informations:
- Operating system: (eg. Ubuntu 22.04)
- Ruby version: (from `ruby --version`, eg. v3.3.5)
- Ruby version: (from `ruby --version`, eg. v3.4.1)
- Node.js version: (from `node --version`, eg. v20.18.0)
validations:
required: false
Expand Down
5 changes: 0 additions & 5 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
// If we do not want a package to be grouped with others, we need to set its groupName
// to `null` after any other rule set it to something.
dependencyDashboardHeader: 'This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more. Before approving any upgrade: read the description and comments in the [`renovate.json5` file](https://github.com/mastodon/mastodon/blob/main/.github/renovate.json5).',
constraints: {
// Mastodon should work on Ruby 3.4, but its test dependencies are currently uninstallable on Ruby 3.4.
// TODO: remove this once https://github.com/briandunn/flatware/issues/103 is fixed
ruby: '3.3',
},
postUpdateOptions: ['yarnDedupeHighest'],
packageRules: [
{
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/crowdin-download-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:

# Create or update the pull request
- name: Create Pull Request
uses: peter-evans/[email protected].5
uses: peter-evans/[email protected].6
with:
commit-message: 'New Crowdin translations'
title: 'New Crowdin Translations for ${{ github.base_ref || github.ref_name }} (automated)'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/crowdin-download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:

# Create or update the pull request
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7.0.5
uses: peter-evans/create-pull-request@v7
with:
commit-message: 'New Crowdin translations'
title: 'New Crowdin Translations (automated)'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ jobs:
matrix:
ruby-version:
- '3.2'
- '3.3'
- '.ruby-version'
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -226,6 +227,7 @@ jobs:
matrix:
ruby-version:
- '3.2'
- '3.3'
- '.ruby-version'
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -304,6 +306,7 @@ jobs:
matrix:
ruby-version:
- '3.2'
- '3.3'
- '.ruby-version'

steps:
Expand Down Expand Up @@ -420,6 +423,7 @@ jobs:
matrix:
ruby-version:
- '3.2'
- '3.3'
- '.ruby-version'
search-image:
- docker.elastic.co/elasticsearch/elasticsearch:7.17.13
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.12
22.13
3 changes: 0 additions & 3 deletions .rubocop/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ Style/IfUnlessModifier:
Style/KeywordArgumentsMerging:
Enabled: false

Style/MultipleComparison:
Enabled: false

Style/NumericLiterals:
AllowedPatterns:
- \d{4}_\d{2}_\d{2}_\d{6}
Expand Down
6 changes: 3 additions & 3 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# This configuration was generated by
# `rubocop --auto-gen-config --auto-gen-only-exclude --no-offense-counts --no-auto-gen-timestamp`
# using RuboCop version 1.69.1.
# using RuboCop version 1.69.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

Lint/NonLocalExitFromIterator:
Exclude:
- 'app/helpers/jsonld_helper.rb'
- 'app/helpers/json_ld_helper.rb'

# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Expand Down Expand Up @@ -82,7 +82,7 @@ Style/MutableConstant:
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
Exclude:
- 'app/helpers/jsonld_helper.rb'
- 'app/helpers/json_ld_helper.rb'
- 'app/lib/admin/system_check/message.rb'
- 'app/lib/request.rb'
- 'app/lib/webfinger.rb'
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.6
3.4.1
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ You can contribute in the following ways:
If your contributions are accepted into Mastodon, you can request to be paid through [our OpenCollective](https://opencollective.com/mastodon).

Please review the org-level [contribution guidelines] for high-level acceptance
criteria guidance.
criteria guidance and the [DEVELOPMENT] guide for environment-specific details.

[contribution guidelines]: https://github.com/mastodon/.github/blob/main/CONTRIBUTING.md

Expand Down Expand Up @@ -94,3 +94,5 @@ It is not always possible to phrase every change in such a manner, but it is des
The [Mastodon documentation](https://docs.joinmastodon.org) is a statically generated site. You can [submit merge requests to mastodon/documentation](https://github.com/mastodon/documentation).

</blockquote>

[DEVELOPMENT]: docs/DEVELOPMENT.md
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
ARG TARGETPLATFORM=${TARGETPLATFORM}
ARG BUILDPLATFORM=${BUILDPLATFORM}

# Ruby image to use for base image, change with [--build-arg RUBY_VERSION="3.3.x"]
# Ruby image to use for base image, change with [--build-arg RUBY_VERSION="3.4.x"]
# renovate: datasource=docker depName=docker.io/ruby
ARG RUBY_VERSION="3.3.6"
ARG RUBY_VERSION="3.4.1"
# # Node version to use in base image, change with [--build-arg NODE_MAJOR_VERSION="20"]
# renovate: datasource=node-version depName=node
ARG NODE_MAJOR_VERSION="22"
# Debian image to use for base image, change with [--build-arg DEBIAN_VERSION="bookworm"]
ARG DEBIAN_VERSION="bookworm"
# Node image to use for base image based on combined variables (ex: 20-bookworm-slim)
FROM docker.io/node:${NODE_MAJOR_VERSION}-${DEBIAN_VERSION}-slim AS node
# Ruby image to use for base image based on combined variables (ex: 3.3.x-slim-bookworm)
# Ruby image to use for base image based on combined variables (ex: 3.4.x-slim-bookworm)
FROM docker.io/ruby:${RUBY_VERSION}-slim-${DEBIAN_VERSION} AS ruby

# Resulting version string is vX.X.X-MASTODON_VERSION_PRERELEASE+MASTODON_VERSION_METADATA
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

source 'https://rubygems.org'
ruby '>= 3.2.0', '< 3.5'
ruby '>= 3.2.0', '< 3.5.0'

gem 'propshaft'
gem 'puma', '~> 6.3'
Expand Down Expand Up @@ -108,7 +108,7 @@ group :opentelemetry do
gem 'opentelemetry-instrumentation-active_model_serializers', '~> 0.21.0', require: false
gem 'opentelemetry-instrumentation-concurrent_ruby', '~> 0.21.2', require: false
gem 'opentelemetry-instrumentation-excon', '~> 0.22.0', require: false
gem 'opentelemetry-instrumentation-faraday', '~> 0.24.1', require: false
gem 'opentelemetry-instrumentation-faraday', '~> 0.25.0', require: false
gem 'opentelemetry-instrumentation-http', '~> 0.23.2', require: false
gem 'opentelemetry-instrumentation-http_client', '~> 0.22.3', require: false
gem 'opentelemetry-instrumentation-net_http', '~> 0.22.4', require: false
Expand Down
32 changes: 16 additions & 16 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ GEM
ast (2.4.2)
attr_required (1.0.2)
aws-eventstream (1.3.0)
aws-partitions (1.1029.0)
aws-partitions (1.1032.0)
aws-sdk-core (3.214.1)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.992.0)
Expand All @@ -103,7 +103,7 @@ GEM
aws-sdk-kms (1.96.0)
aws-sdk-core (~> 3, >= 3.210.0)
aws-sigv4 (~> 1.5)
aws-sdk-s3 (1.176.1)
aws-sdk-s3 (1.177.0)
aws-sdk-core (~> 3, >= 3.210.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.5)
Expand Down Expand Up @@ -160,7 +160,7 @@ GEM
cocoon (1.2.15)
color_diff (0.1)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
connection_pool (2.5.0)
cose (1.3.1)
cbor (~> 0.5.9)
openssl-signature_algorithm (~> 1.0)
Expand Down Expand Up @@ -233,16 +233,16 @@ GEM
faraday-net_http (3.4.0)
net-http (>= 0.5.0)
fast_blank (1.0.1)
fastimage (2.3.1)
fastimage (2.4.0)
ffi (1.17.1)
ffi-compiler (1.3.2)
ffi (>= 1.15.5)
rake
flatware (2.3.3)
flatware (2.3.4)
drb
thor (< 2.0)
flatware-rspec (2.3.3)
flatware (= 2.3.3)
flatware-rspec (2.3.4)
flatware (= 2.3.4)
rspec (>= 3.6)
fog-core (2.5.0)
builder
Expand Down Expand Up @@ -490,7 +490,7 @@ GEM
opentelemetry-instrumentation-active_job (0.7.8)
opentelemetry-api (~> 1.0)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-active_model_serializers (0.21.0)
opentelemetry-instrumentation-active_model_serializers (0.21.1)
opentelemetry-api (~> 1.0)
opentelemetry-instrumentation-active_support (>= 0.7.0)
opentelemetry-instrumentation-base (~> 0.22.1)
Expand All @@ -510,7 +510,7 @@ GEM
opentelemetry-instrumentation-excon (0.22.5)
opentelemetry-api (~> 1.0)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-faraday (0.24.8)
opentelemetry-instrumentation-faraday (0.25.0)
opentelemetry-api (~> 1.0)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-http (0.23.5)
Expand All @@ -522,7 +522,7 @@ GEM
opentelemetry-instrumentation-net_http (0.22.8)
opentelemetry-api (~> 1.0)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-pg (0.29.1)
opentelemetry-instrumentation-pg (0.29.2)
opentelemetry-api (~> 1.0)
opentelemetry-helpers-sql-obfuscation
opentelemetry-instrumentation-base (~> 0.22.1)
Expand Down Expand Up @@ -709,7 +709,7 @@ GEM
rspec-mocks (~> 3.0)
sidekiq (>= 5, < 8)
rspec-support (3.13.2)
rubocop (1.69.2)
rubocop (1.70.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
Expand All @@ -723,7 +723,7 @@ GEM
parser (>= 3.3.1.0)
rubocop-capybara (2.21.0)
rubocop (~> 1.41)
rubocop-performance (1.23.0)
rubocop-performance (1.23.1)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rails (2.28.0)
Expand All @@ -744,7 +744,7 @@ GEM
ruby-vips (2.2.2)
ffi (~> 1.12)
logger
rubyzip (2.3.2)
rubyzip (2.4.1)
rufus-scheduler (3.9.2)
fugit (~> 1.1, >= 1.11.1)
safety_net_attestation (0.4.0)
Expand Down Expand Up @@ -809,7 +809,7 @@ GEM
unicode-display_width (>= 1.1.1, < 3)
terrapin (1.0.1)
climate_control
test-prof (1.4.3)
test-prof (1.4.4)
thor (1.3.2)
tilt (2.5.0)
timeout (0.4.3)
Expand Down Expand Up @@ -963,7 +963,7 @@ DEPENDENCIES
opentelemetry-instrumentation-active_model_serializers (~> 0.21.0)
opentelemetry-instrumentation-concurrent_ruby (~> 0.21.2)
opentelemetry-instrumentation-excon (~> 0.22.0)
opentelemetry-instrumentation-faraday (~> 0.24.1)
opentelemetry-instrumentation-faraday (~> 0.25.0)
opentelemetry-instrumentation-http (~> 0.23.2)
opentelemetry-instrumentation-http_client (~> 0.22.3)
opentelemetry-instrumentation-net_http (~> 0.22.4)
Expand Down Expand Up @@ -1034,7 +1034,7 @@ DEPENDENCIES
xorcist (~> 1.1)

RUBY VERSION
ruby 3.3.6p108
ruby 3.4.1p0

BUNDLED WITH
2.6.2
Loading
Loading