From 412ab6fac9e4d2430ca5499a4ecea934a4868cac Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Wed, 17 Jun 2026 04:17:10 -0400 Subject: [PATCH 1/6] Relax account display name length limit (#39458) --- app/models/account.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/account.rb b/app/models/account.rb index 60e4f526ca..7550bb2a9d 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -76,7 +76,7 @@ class Account < ApplicationRecord URL_PREFIX_RE = %r{\Ahttp(s?)://[^/]+} USERNAME_ONLY_RE = /\A#{USERNAME_RE}\z/i USERNAME_LENGTH_LIMIT = 30 - DISPLAY_NAME_LENGTH_LIMIT = 30 + DISPLAY_NAME_LENGTH_LIMIT = 40 NOTE_LENGTH_LIMIT = 500 # Hard limits for federated content From e966aae0492cc612a96757ea01a204d9ae60a3aa Mon Sep 17 00:00:00 2001 From: diondiondion Date: Wed, 17 Jun 2026 10:39:47 +0200 Subject: [PATCH 2/6] Fix tiny spacing above character counter (#39467) --- .../mastodon/components/character_counter/styles.module.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/mastodon/components/character_counter/styles.module.scss b/app/javascript/mastodon/components/character_counter/styles.module.scss index 05c9446545..ae77be1554 100644 --- a/app/javascript/mastodon/components/character_counter/styles.module.scss +++ b/app/javascript/mastodon/components/character_counter/styles.module.scss @@ -1,4 +1,5 @@ .counter { + display: block; margin-top: 4px; font-size: 13px; } From fe2db1e2e854fde6cdd82344bde0f9fee9ac2151 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Wed, 17 Jun 2026 10:41:35 +0200 Subject: [PATCH 3/6] Refactor report modal heading translation (#39457) --- .../mastodon/features/report/category.jsx | 14 ++++---------- app/javascript/mastodon/locales/en.json | 7 +++---- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/app/javascript/mastodon/features/report/category.jsx b/app/javascript/mastodon/features/report/category.jsx index 539f1d8bda..a6b042ccd6 100644 --- a/app/javascript/mastodon/features/report/category.jsx +++ b/app/javascript/mastodon/features/report/category.jsx @@ -22,8 +22,9 @@ const messages = defineMessages({ violation_description: { id: 'report.reasons.violation_description', defaultMessage: 'You are aware that it breaks specific rules' }, other: { id: 'report.reasons.other', defaultMessage: 'It\'s something else' }, other_description: { id: 'report.reasons.other_description', defaultMessage: 'The issue does not fit into other categories' }, - status: { id: 'report.category.title_status', defaultMessage: 'post' }, - account: { id: 'report.category.title_account', defaultMessage: 'profile' }, + status: { id: 'report.category.title_status', defaultMessage: "Tell us what's going on with this post" }, + account: { id: 'report.category.title_account', defaultMessage: "Tell us what's going on with this profile" }, + collection: { id: 'report.category.title_collection', defaultMessage: "Tell us what's going on with this collection"} }); const mapStateToProps = state => ({ @@ -88,14 +89,7 @@ class Category extends PureComponent { return ( <> - {startedFrom === 'collection' ? ( - - ) : ( - - )} + {intl.formatMessage(messages[startedFrom])}

diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json index 505f0fc6b6..27012a495d 100644 --- a/app/javascript/mastodon/locales/en.json +++ b/app/javascript/mastodon/locales/en.json @@ -1138,11 +1138,10 @@ "report.categories.spam": "Spam", "report.categories.violation": "Content violates one or more server rules", "report.category.subtitle": "Choose the best match", - "report.category.title": "Tell us what's going on with this {type}", - "report.category.title_account": "profile", - "report.category.title_status": "post", + "report.category.title_account": "Tell us what's going on with this profile", + "report.category.title_collection": "Tell us what's going on with this collection", + "report.category.title_status": "Tell us what's going on with this post", "report.close": "Done", - "report.collection_comment": "Why do you want to report this collection?", "report.comment.title": "Is there anything else you think we should know?", "report.forward": "Forward to {target}", "report.forward_hint": "The account is from another server. Send an anonymized copy of the report there as well?", From b777936bdf555bb597513bcb7c16673864bbac50 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Wed, 17 Jun 2026 05:01:45 -0400 Subject: [PATCH 4/6] Handle missing `sw.js` in test environment assets (#39459) --- lib/mastodon/middleware/public_file_server.rb | 5 +++-- spec/requests/public_files_spec.rb | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/mastodon/middleware/public_file_server.rb b/lib/mastodon/middleware/public_file_server.rb index ac2f8c52c4..eb06184d51 100644 --- a/lib/mastodon/middleware/public_file_server.rb +++ b/lib/mastodon/middleware/public_file_server.rb @@ -5,8 +5,9 @@ require 'action_dispatch/middleware/static' module Mastodon module Middleware class PublicFileServer + CACHE_TTL = 28.days.to_i + SERVICE_WORKER_PATH = '/sw.js' SERVICE_WORKER_TTL = 7.days.to_i - CACHE_TTL = 28.days.to_i def initialize(app) @app = app @@ -24,7 +25,7 @@ module Mastodon # Set cache headers on static files. Some paths require different cache headers request = Rack::Request.new env headers['cache-control'] = begin - if request.path.start_with?('/sw.js') + if request.path.start_with?(SERVICE_WORKER_PATH) "public, max-age=#{SERVICE_WORKER_TTL}, must-revalidate" elsif request.path.start_with?(paperclip_root_url) "public, max-age=#{CACHE_TTL}, immutable" diff --git a/spec/requests/public_files_spec.rb b/spec/requests/public_files_spec.rb index 512e069cf7..c8d6b176af 100644 --- a/spec/requests/public_files_spec.rb +++ b/spec/requests/public_files_spec.rb @@ -6,8 +6,10 @@ RSpec.describe 'Public files' do include RoutingHelper context 'when requesting service worker file' do + before { stub_const 'Mastodon::Middleware::PublicFileServer::SERVICE_WORKER_PATH', '/robots.txt' } + it 'returns the file with the expected headers' do - get '/sw.js' + get Mastodon::Middleware::PublicFileServer::SERVICE_WORKER_PATH expect(response) .to have_http_status(200) From ccd6fb92f955c69771f9fc90d8c87f52f426a0b6 Mon Sep 17 00:00:00 2001 From: Echo Date: Wed, 17 Jun 2026 11:12:55 +0200 Subject: [PATCH 5/6] Upgrades to React 19.2 (#39330) --- .../__snapshots__/avatar-test.jsx.snap | 26 +----- .../avatar_overlay-test.jsx.snap | 35 ++----- .../__snapshots__/button-test.jsx.snap | 23 ++--- .../components/__tests__/avatar-test.jsx | 12 +-- .../__tests__/avatar_overlay-test.jsx | 7 +- .../components/__tests__/button-test.jsx | 37 +++----- .../mastodon/components/status_quoted.tsx | 26 +++++- .../mastodon/utils/react_router.tsx | 10 +- package.json | 10 +- yarn.lock | 92 +++++-------------- 10 files changed, 90 insertions(+), 188 deletions(-) diff --git a/app/javascript/mastodon/components/__tests__/__snapshots__/avatar-test.jsx.snap b/app/javascript/mastodon/components/__tests__/__snapshots__/avatar-test.jsx.snap index 1b6647f91f..192aaa4de5 100644 --- a/app/javascript/mastodon/components/__tests__/__snapshots__/avatar-test.jsx.snap +++ b/app/javascript/mastodon/components/__tests__/__snapshots__/avatar-test.jsx.snap @@ -2,20 +2,11 @@ exports[` > Autoplay > renders a animated avatar 1`] = ` @@ -23,20 +14,11 @@ exports[` > Autoplay > renders a animated avatar 1`] = ` exports[` > Still > renders a still avatar 1`] = ` diff --git a/app/javascript/mastodon/components/__tests__/__snapshots__/avatar_overlay-test.jsx.snap b/app/javascript/mastodon/components/__tests__/__snapshots__/avatar_overlay-test.jsx.snap index de4ccd6594..1d4d8145da 100644 --- a/app/javascript/mastodon/components/__tests__/__snapshots__/avatar_overlay-test.jsx.snap +++ b/app/javascript/mastodon/components/__tests__/__snapshots__/avatar_overlay-test.jsx.snap @@ -2,50 +2,31 @@ exports[` renders a overlay avatar 1`] = `