From 4ebd62e95219b50cb9e7e2ab1715561723b926eb Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 15 Sep 2026 15:39:08 +0200 Subject: [PATCH 01/25] Disable HEIF tests --- spec/models/media_attachment_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/media_attachment_spec.rb b/spec/models/media_attachment_spec.rb index cbabb1d0dd..1cb86b9dc9 100644 --- a/spec/models/media_attachment_spec.rb +++ b/spec/models/media_attachment_spec.rb @@ -149,13 +149,13 @@ RSpec.describe MediaAttachment, :attachment_processing do it_behaves_like 'static 600x400 image', 'image/webp', '.webp' end - describe 'avif' do + describe 'avif', skip: 'HEIF temporarily disabled' do let(:media) { Fabricate(:media_attachment, file: attachment_fixture('600x400.avif')) } it_behaves_like 'static 600x400 image', 'image/jpeg', '.jpeg' end - describe 'heic' do + describe 'heic', skip: 'HEIF temporarily disabled' do let(:media) { Fabricate(:media_attachment, file: attachment_fixture('600x400.heic')) } it_behaves_like 'static 600x400 image', 'image/jpeg', '.jpeg' From b2bb4087eb09ec9984efd75734ab87affdf882e5 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Thu, 3 Sep 2026 16:33:28 +0000 Subject: [PATCH 02/25] Add link to homepage to 404 error page (#40369) --- app/javascript/styles/mastodon/basics.scss | 1 + app/views/layouts/error.html.haml | 3 ++- config/locales/en.yml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/javascript/styles/mastodon/basics.scss b/app/javascript/styles/mastodon/basics.scss index 87bbe20c73..25841c4afc 100644 --- a/app/javascript/styles/mastodon/basics.scss +++ b/app/javascript/styles/mastodon/basics.scss @@ -185,6 +185,7 @@ body { font-size: 20px; line-height: 28px; font-weight: 400; + margin-bottom: var(--space-md); } } } diff --git a/app/views/layouts/error.html.haml b/app/views/layouts/error.html.haml index 03cb93dba7..d73e316f67 100644 --- a/app/views/layouts/error.html.haml +++ b/app/views/layouts/error.html.haml @@ -12,8 +12,9 @@ = theme_style_tags Setting.default_settings['theme'] = vite_typescript_tag 'error.ts', crossorigin: 'anonymous' %body.error - .dialog + %main.dialog .dialog__illustration %img{ alt: Setting.default_settings['site_title'], src: '/oops.png' }/ .dialog__message %h1= yield :content + %a{ class: 'button button-secondary', href: '/' }= t('errors.go_home') diff --git a/config/locales/en.yml b/config/locales/en.yml index acaf60f73d..cf4ac7483f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1596,6 +1596,7 @@ en: content: We're sorry, but something went wrong on our end. title: This page is not correct '503': The page could not be served due to a temporary server failure. + go_home: Go home noscript_html: To use the Mastodon web application, please enable JavaScript. Alternatively, try one of the native apps for Mastodon for your platform. existing_username_validator: not_found: could not find a local user with that username From 37a818bb571731c1c843aba6c0b17a8ee3d81175 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Wed, 9 Sep 2026 16:17:54 +0000 Subject: [PATCH 03/25] Fix email footer spacing around custom footer text (#40440) --- app/javascript/styles/entrypoints/mailer.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/styles/entrypoints/mailer.scss b/app/javascript/styles/entrypoints/mailer.scss index 8ef0045499..1ac0d3cd1f 100644 --- a/app/javascript/styles/entrypoints/mailer.scss +++ b/app/javascript/styles/entrypoints/mailer.scss @@ -516,7 +516,7 @@ table + p { text-decoration: underline; } - &:first-child { + &:not(last-child) { margin-bottom: 12px; } } From 973e3716ba1f9230fbab40b7b5960ca4f8a6386c Mon Sep 17 00:00:00 2001 From: Kazuki Nagasawa <113568707+crafkaz@users.noreply.github.com> Date: Mon, 14 Sep 2026 08:18:44 +0000 Subject: [PATCH 04/25] Fix missing confirmation when leaving with an unsent post (#40478) --- app/javascript/mastodon/features/compose/index.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/features/compose/index.tsx b/app/javascript/mastodon/features/compose/index.tsx index 8d9dc68cbe..137a27fe73 100644 --- a/app/javascript/mastodon/features/compose/index.tsx +++ b/app/javascript/mastodon/features/compose/index.tsx @@ -17,7 +17,11 @@ import MenuIcon from '@/material-icons/400-24px/menu.svg?react'; import NotificationsIcon from '@/material-icons/400-24px/notifications-fill.svg?react'; import PublicIcon from '@/material-icons/400-24px/public.svg?react'; import SettingsIcon from '@/material-icons/400-24px/settings.svg?react'; -import { mountCompose, unmountCompose } from 'mastodon/actions/compose'; +import { + changeComposing, + mountCompose, + unmountCompose, +} from 'mastodon/actions/compose'; import { openModal } from 'mastodon/actions/modal'; import { Column } from 'mastodon/components/column'; import { ColumnHeader } from 'mastodon/components/column_header'; @@ -63,6 +67,10 @@ const Compose: React.FC<{ multiColumn: boolean }> = ({ multiColumn }) => { }; }, [dispatch]); + const handleFocus = useCallback(() => { + dispatch(changeComposing(true)); + }, [dispatch]); + const handleLogoutClick = useCallback( (e: React.MouseEvent) => { e.preventDefault(); @@ -164,7 +172,7 @@ const Compose: React.FC<{ multiColumn: boolean }> = ({ multiColumn }) => { role='region' aria-label={intl.formatMessage(navbarMessages.publish)} > -
+
From 33d04aed486d0b2f5a22bf45c5c8a358d4be9f63 Mon Sep 17 00:00:00 2001 From: Tdxdxoz Date: Mon, 14 Sep 2026 09:00:59 +0000 Subject: [PATCH 05/25] Fix replies order (#40481) --- app/javascript/mastodon/reducers/contexts.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/reducers/contexts.ts b/app/javascript/mastodon/reducers/contexts.ts index 0331c8083a..4d1c0efbe9 100644 --- a/app/javascript/mastodon/reducers/contexts.ts +++ b/app/javascript/mastodon/reducers/contexts.ts @@ -55,7 +55,9 @@ const addReply = ( if (!state.inReplyTos[id]) { const siblings = (state.replies[in_reply_to_id] ??= []); - const index = siblings.findIndex((sibling) => compareId(sibling, id) < 0); + const index = siblings.findLastIndex( + (sibling) => compareId(sibling, id) < 0, + ); siblings.splice(index + 1, 0, id); state.inReplyTos[id] = in_reply_to_id; } From 17545f985456f437db23a6fb691652cf9b1aa1c1 Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Mon, 14 Sep 2026 08:21:38 +0000 Subject: [PATCH 06/25] Fix z-index of PIP video player to be above the side panel (#40484) --- app/javascript/styles/mastodon/components.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index 93d577a922..82fa66b84a 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -8739,6 +8739,7 @@ noscript { bottom: 20px; inset-inline-end: 20px; width: 300px; + z-index: 100; background-color: var(--color-bg-primary); box-shadow: var(--dropdown-shadow); From 01b69a57436c0d700481085dc694bc29e140a387 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 17 Sep 2026 17:11:31 +0000 Subject: [PATCH 07/25] Add logging of account data removal (#40572) --- app/controllers/admin/accounts_controller.rb | 1 + app/controllers/api/v1/admin/accounts_controller.rb | 1 + app/workers/scheduler/suspended_user_cleanup_scheduler.rb | 2 +- config/locales/en.yml | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controllers/admin/accounts_controller.rb b/app/controllers/admin/accounts_controller.rb index e140693014..3a69997008 100644 --- a/app/controllers/admin/accounts_controller.rb +++ b/app/controllers/admin/accounts_controller.rb @@ -72,6 +72,7 @@ module Admin def destroy authorize @account, :destroy? Admin::AccountDeletionWorker.perform_async(@account.id) + log_action :destroy, @account redirect_to admin_account_path(@account.id), notice: I18n.t('admin.accounts.destroyed_msg', username: @account.acct) end diff --git a/app/controllers/api/v1/admin/accounts_controller.rb b/app/controllers/api/v1/admin/accounts_controller.rb index cc42db2535..94729cef94 100644 --- a/app/controllers/api/v1/admin/accounts_controller.rb +++ b/app/controllers/api/v1/admin/accounts_controller.rb @@ -69,6 +69,7 @@ class Api::V1::Admin::AccountsController < Api::BaseController def destroy authorize @account, :destroy? Admin::AccountDeletionWorker.perform_async(@account.id) + log_action :destroy, @account render_empty end diff --git a/app/workers/scheduler/suspended_user_cleanup_scheduler.rb b/app/workers/scheduler/suspended_user_cleanup_scheduler.rb index 4ea81c785b..82197274a1 100644 --- a/app/workers/scheduler/suspended_user_cleanup_scheduler.rb +++ b/app/workers/scheduler/suspended_user_cleanup_scheduler.rb @@ -30,7 +30,7 @@ class Scheduler::SuspendedUserCleanupScheduler # This should be fine because we only process a small amount of deletion requests at once and # `id` and `created_at` should follow the same order. AccountDeletionRequest.reorder(id: :asc).take(MAX_DELETIONS_PER_JOB).each do |deletion_request| - next unless deletion_request.created_at < AccountDeletionRequest::DELAY_TO_DELETION.ago + next unless deletion_request.due_at.past? Admin::AccountDeletionWorker.perform_async(deletion_request.account_id) end diff --git a/config/locales/en.yml b/config/locales/en.yml index cf4ac7483f..ff557c0202 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -200,6 +200,7 @@ en: create_user_role: Create Role create_username_block: Create Username Rule demote_user: Demote User + destroy_account: Delete Account Data destroy_announcement: Delete Announcement destroy_canonical_email_block: Delete Email Block destroy_custom_emoji: Delete Custom Emoji @@ -268,6 +269,7 @@ en: create_user_role_html: "%{name} created %{target} role" create_username_block_html: "%{name} added rule for usernames containing %{target}" demote_user_html: "%{name} demoted user %{target}" + destroy_account_html: "%{name} deleted account data for %{target}" destroy_announcement_html: "%{name} deleted announcement %{target}" destroy_canonical_email_block_html: "%{name} unblocked email with the hash %{target}" destroy_collection_html: "%{name} removed collection by %{target}" From 74982cc81e5028f916dcf3c2fe0a9e0f4004d5a3 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 17 Sep 2026 17:03:24 +0000 Subject: [PATCH 08/25] Always require typing username when self-deleting account (#40576) --- app/controllers/settings/deletes_controller.rb | 8 +++----- app/views/settings/deletes/show.html.haml | 4 ++-- spec/system/settings/deletes_spec.rb | 9 +++++++++ 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/app/controllers/settings/deletes_controller.rb b/app/controllers/settings/deletes_controller.rb index c499c12831..7dbe9e59e2 100644 --- a/app/controllers/settings/deletes_controller.rb +++ b/app/controllers/settings/deletes_controller.rb @@ -29,11 +29,9 @@ class Settings::DeletesController < Settings::BaseController end def challenge_passed? - if current_user.encrypted_password.blank? - current_account.username == resource_params[:username] - else - current_user.valid_password?(resource_params[:password]) - end + return false unless current_account.username == resource_params[:username] + + current_user.encrypted_password.blank? || current_user.valid_password?(resource_params[:password]) end def destroy_account! diff --git a/app/views/settings/deletes/show.html.haml b/app/views/settings/deletes/show.html.haml index 2e9785c898..d87edc83ae 100644 --- a/app/views/settings/deletes/show.html.haml +++ b/app/views/settings/deletes/show.html.haml @@ -20,10 +20,10 @@ %hr.spacer/ + = f.input :username, wrapper: :with_block_label, input_html: { autocomplete: 'off' }, hint: t('deletes.confirm_username') + - if current_user.encrypted_password.present? = f.input :password, wrapper: :with_block_label, input_html: { autocomplete: 'current-password' }, hint: t('deletes.confirm_password') - - else - = f.input :username, wrapper: :with_block_label, input_html: { autocomplete: 'off' }, hint: t('deletes.confirm_username') .actions = f.button :button, t('deletes.proceed'), type: :submit, class: 'negative' diff --git a/spec/system/settings/deletes_spec.rb b/spec/system/settings/deletes_spec.rb index e8acee73d7..91f6fe35e2 100644 --- a/spec/system/settings/deletes_spec.rb +++ b/spec/system/settings/deletes_spec.rb @@ -15,12 +15,21 @@ RSpec.describe 'Settings Deletes' do .and have_private_cache_control # Wrong confirmation value + fill_in 'form_delete_confirmation_username', with: user.account.username fill_in 'form_delete_confirmation_password', with: 'wrongvalue' click_on I18n.t('deletes.proceed') expect(page) .to have_text(I18n.t('deletes.challenge_not_passed')) + # Wrong confirmation value + fill_in 'form_delete_confirmation_username', with: 'wrongvalue' + fill_in 'form_delete_confirmation_password', with: user.password + click_on I18n.t('deletes.proceed') + expect(page) + .to have_text(I18n.t('deletes.challenge_not_passed')) + # Correct confirmation value + fill_in 'form_delete_confirmation_username', with: user.account.username fill_in 'form_delete_confirmation_password', with: user.password click_on I18n.t('deletes.proceed') expect(page) From dcd2ac23565295acd0a48c8123539764af06fb47 Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 18 Sep 2026 10:20:07 +0000 Subject: [PATCH 09/25] Only build assets once in CI (#40582) --- .github/workflows/test-ruby.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test-ruby.yml b/.github/workflows/test-ruby.yml index 9a792be882..117d6df56f 100644 --- a/.github/workflows/test-ruby.yml +++ b/.github/workflows/test-ruby.yml @@ -18,18 +18,13 @@ concurrency: jobs: build: + name: build (production) runs-on: ubuntu-latest timeout-minutes: 15 - strategy: - fail-fast: true - matrix: - mode: - - production - - test env: - RAILS_ENV: ${{ matrix.mode }} - BUNDLE_WITH: ${{ matrix.mode }} + RAILS_ENV: production + BUNDLE_WITH: production SECRET_KEY_BASE_DUMMY: 1 steps: @@ -51,12 +46,12 @@ jobs: public/packs public/packs-test tmp/cache/vite - key: ${{ matrix.mode }}-assets-${{ github.head_ref || github.ref_name }}-${{ github.sha }} + key: assets-${{ github.head_ref || github.ref_name }}-${{ github.sha }} restore-keys: | - ${{ matrix.mode }}-assets-${{ github.head_ref || github.ref_name }}-${{ github.sha }} - ${{ matrix.mode }}-assets-${{ github.head_ref || github.ref_name }} - ${{ matrix.mode }}-assets-main - ${{ matrix.mode }}-assets + assets-${{ github.head_ref || github.ref_name }}-${{ github.sha }} + assets-${{ github.head_ref || github.ref_name }} + assets-main + assets - name: Precompile assets run: |- @@ -67,7 +62,6 @@ jobs: tar --exclude={"*.br","*.gz"} -zcf artifacts.tar.gz public/assets public/packs* - uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 - if: matrix.mode == 'test' with: path: |- ./artifacts.tar.gz From b41ab8a4d305404bd08b6d46e9204bc240828847 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 21 Sep 2026 07:52:10 +0000 Subject: [PATCH 10/25] Update dependency FFmpeg/FFmpeg to v9.0.2 (#40613) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 667571829e..9e99a52026 100644 --- a/Dockerfile +++ b/Dockerfile @@ -234,7 +234,7 @@ FROM media-build AS ffmpeg # ffmpeg version to compile, change with [--build-arg FFMPEG_VERSION="7.0.x"] # renovate: datasource=github-tags depName=FFmpeg/FFmpeg extractVersion=^n(?\d+\.\d+(\.\d+)?)$ -ARG FFMPEG_VERSION=9.0.1 +ARG FFMPEG_VERSION=9.0.2 # ffmpeg download URL, change with [--build-arg FFMPEG_URL="https://ffmpeg.org/releases"] ARG FFMPEG_URL=https://github.com/FFmpeg/FFmpeg/archive/refs/tags From 02aa9903a05a3ca248c02340d2406729660245f3 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 21 Sep 2026 12:22:50 +0000 Subject: [PATCH 11/25] Fix `PreviewCardsStatus` records not being deleted on account deletion (#40624) --- app/services/batched_remove_status_service.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/services/batched_remove_status_service.rb b/app/services/batched_remove_status_service.rb index 4dad80fc11..7cd4021a7c 100644 --- a/app/services/batched_remove_status_service.rb +++ b/app/services/batched_remove_status_service.rb @@ -33,6 +33,9 @@ class BatchedRemoveStatusService < BaseService # cascade the delete faster without loading the associations. statuses_and_reblogs.each_slice(50) { |slice| Status.unscoped.where(id: slice.pluck(:id)).delete_all } + # TODO: remove later, when we have added appropriate foreign keys + PreviewCardsStatus.where(status_id: statuses_and_reblogs.pluck(:id)).in_batches.delete_all + # Since we skipped all callbacks, we also need to manually # deindex the statuses if Chewy.enabled? From d33f07cf2dac77a1f43d98b906699cc8bff13749 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 21 Sep 2026 12:22:54 +0000 Subject: [PATCH 12/25] Fix deleted accounts not being removed from featured collections (#40623) --- app/services/delete_account_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/delete_account_service.rb b/app/services/delete_account_service.rb index c3d08390e2..d6207b4be3 100644 --- a/app/services/delete_account_service.rb +++ b/app/services/delete_account_service.rb @@ -11,6 +11,7 @@ class DeleteAccountService < BaseService block_relationships blocked_by_relationships collections + collection_items conversation_mutes conversations custom_filters From efef2275c7b732d6598d64d5a0b4f8fa08db47e4 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 21 Sep 2026 12:22:57 +0000 Subject: [PATCH 13/25] Fix account avatar and header descriptions not being deleted when an account is deleted (#40621) --- app/services/delete_account_service.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/services/delete_account_service.rb b/app/services/delete_account_service.rb index d6207b4be3..0416686789 100644 --- a/app/services/delete_account_service.rb +++ b/app/services/delete_account_service.rb @@ -253,6 +253,8 @@ class DeleteAccountService < BaseService @account.also_known_as = [] @account.avatar.destroy @account.header.destroy + @account.avatar_description = '' + @account.header_description = '' @account.save! end From 899f77836edfb9bc2b05787bfa2a2473171893a5 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Tue, 25 Aug 2026 14:43:22 +0000 Subject: [PATCH 14/25] Fix description text overflowing on Overview landing page (#40272) --- .../mastodon/features/custom_homepage/styles.module.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/custom_homepage/styles.module.scss b/app/javascript/mastodon/features/custom_homepage/styles.module.scss index 856f44b0e8..23f25b187a 100644 --- a/app/javascript/mastodon/features/custom_homepage/styles.module.scss +++ b/app/javascript/mastodon/features/custom_homepage/styles.module.scss @@ -42,12 +42,13 @@ } p { + overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; + line-clamp: 2; font-size: 16px; line-height: 24px; - text-overflow: ellipsis; } } From 79206902e99a0039abd4c5e86aa8e86be6732bc6 Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 22 Sep 2026 09:04:55 +0000 Subject: [PATCH 15/25] Fix deleted-because-of-suspension accounts being marked as manually deleted (#40645) --- app/workers/admin/account_deletion_worker.rb | 6 +++--- spec/workers/admin/account_deletion_worker_spec.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/workers/admin/account_deletion_worker.rb b/app/workers/admin/account_deletion_worker.rb index cd0d9c1f5e..48adfd9045 100644 --- a/app/workers/admin/account_deletion_worker.rb +++ b/app/workers/admin/account_deletion_worker.rb @@ -6,10 +6,10 @@ class Admin::AccountDeletionWorker sidekiq_options queue: 'pull', lock: :until_executed, lock_ttl: 1.week.to_i def perform(account_id) - delete_account = Account.find(account_id) - return unless delete_account.unavailable? + account = Account.find(account_id) + return unless account.unavailable? - DeleteAccountService.new.call(delete_account, reserve_username: true, reserve_email: true) + DeleteAccountService.new.call(account, reserve_username: true, reserve_email: true, suspended_at: account.suspended_at) rescue ActiveRecord::RecordNotFound true end diff --git a/spec/workers/admin/account_deletion_worker_spec.rb b/spec/workers/admin/account_deletion_worker_spec.rb index 7fc56e4289..84f62ad6aa 100644 --- a/spec/workers/admin/account_deletion_worker_spec.rb +++ b/spec/workers/admin/account_deletion_worker_spec.rb @@ -13,7 +13,7 @@ RSpec.describe Admin::AccountDeletionWorker do allow(DeleteAccountService).to receive(:new).and_return(service) worker.perform(account.id) - expect(service).to have_received(:call).with(account, { reserve_email: true, reserve_username: true }) + expect(service).to have_received(:call).with(account, { reserve_email: true, reserve_username: true, suspended_at: account.reload.suspended_at }) end end end From a0b44d446f91be546749c5dd7461d54061518113 Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 22 Sep 2026 12:33:05 +0000 Subject: [PATCH 16/25] Fix moderators being able to issue a warning on moderators of higher position (#40646) --- app/models/admin/base_action.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/admin/base_action.rb b/app/models/admin/base_action.rb index d07e8464fd..19c04490e1 100644 --- a/app/models/admin/base_action.rb +++ b/app/models/admin/base_action.rb @@ -43,6 +43,7 @@ class Admin::BaseAction private def process_strike!(action = type) + authorize(target_account, :warn?) @warning = target_account.strikes.create!( account: current_account, report: report, From 2f13c07fbe4d9bcc8865bdb0d2c8c9dc2d667961 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 23 Sep 2026 07:52:44 +0000 Subject: [PATCH 17/25] Fix rate limits not normalizing submitted e-mail addresses (#40658) --- config/initializers/rack_attack.rb | 12 ++++++++---- spec/config/initializers/rack/attack_spec.rb | 12 ++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/config/initializers/rack_attack.rb b/config/initializers/rack_attack.rb index 853b99d32f..b6d2fba85c 100644 --- a/config/initializers/rack_attack.rb +++ b/config/initializers/rack_attack.rb @@ -60,6 +60,10 @@ class Rack::Attack def paging_request? params['page'].present? || params['min_id'].present? || params['max_id'].present? || params['since_id'].present? end + + def normalized_email + CanonicalEmailBlock.canonicalize_email(params.dig('user', 'email')) if params.dig('user', 'email').present? + end end Rack::Attack.blocklist('deny from blocklist') do |req| @@ -118,7 +122,7 @@ class Rack::Attack end throttle('throttle_password_resets/email', limit: 5, period: 30.minutes) do |req| - req.params.dig('user', 'email').presence if req.post? && req.path_matches?('/auth/password') + req.normalized_email if req.post? && req.path_matches?('/auth/password') end throttle('throttle_email_confirmations/ip', limit: 25, period: 5.minutes) do |req| @@ -127,14 +131,14 @@ class Rack::Attack throttle('throttle_email_confirmations/email', limit: 5, period: 30.minutes) do |req| if req.post? && req.path_matches?('/auth/confirmation') - req.params.dig('user', 'email').presence + req.normalized_email elsif req.post? && req.path == '/api/v1/emails/confirmations' req.authenticated_user_id end end throttle('throttle_auth_setup/email', limit: 5, period: 10.minutes) do |req| - req.params.dig('user', 'email').presence if (req.put? || req.patch?) && req.path_matches?('/auth/setup') + req.normalized_email if (req.put? || req.patch?) && req.path_matches?('/auth/setup') end throttle('throttle_auth_setup/account', limit: 5, period: 10.minutes) do |req| @@ -146,7 +150,7 @@ class Rack::Attack end throttle('throttle_login_attempts/email', limit: 25, period: 1.hour) do |req| - req.session[:attempt_user_id] || req.params.dig('user', 'email').presence if req.post? && req.path_matches?('/auth/sign_in') + req.session[:attempt_user_id] || req.normalized_email if req.post? && req.path_matches?('/auth/sign_in') end throttle('throttle_password_change/account', limit: 10, period: 10.minutes) do |req| diff --git a/spec/config/initializers/rack/attack_spec.rb b/spec/config/initializers/rack/attack_spec.rb index c7af11bea7..98efa22dab 100644 --- a/spec/config/initializers/rack/attack_spec.rb +++ b/spec/config/initializers/rack/attack_spec.rb @@ -71,6 +71,18 @@ RSpec.describe Rack::Attack, type: :request do let(:remote_ip) { '1.2.3.5' } let(:discriminator) { remote_ip } + describe 'throttle excessive confirmation e-mail requests by e-mail address' do + let(:throttle) { 'throttle_email_confirmations/email' } + let(:limit) { 5 } + let(:period) { 30.minutes } + let(:request) { -> { post path, params: { user: { email: email } } } } + let(:path) { '/auth/confirmation' } + let(:email) { 'foo@bar.com' } + let(:discriminator) { email } + + it_behaves_like 'throttled endpoint' + end + describe 'throttle excessive sign-up requests by IP address' do context 'when accessed through the website' do let(:throttle) { 'throttle_sign_up_attempts/ip' } From ff1a60ba7fc792b8f3cb03b59ccae549b08eb1f8 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Mon, 21 Sep 2026 14:35:12 +0000 Subject: [PATCH 18/25] Fix mobile navigation covering up "Next step" button during onboarding (#40634) --- app/javascript/styles/mastodon/components.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index 82fa66b84a..d4abccf311 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -11031,10 +11031,14 @@ noscript { } .column-footer { - padding: 16px; position: sticky; bottom: 0; + padding: 16px; background: var(--color-bg-primary); + + @media (width <= $mobile-menu-breakpoint) { + padding-bottom: calc(16px + var(--mobile-bottom-nav-height, 0)); + } } .lists-scrollable { From f06b10cb4704adf9ca3b170001e907342f7dd314 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 24 Sep 2026 11:58:23 +0000 Subject: [PATCH 19/25] Fix reported statuses not being deleted after account deletion (#40650) --- app/services/delete_account_service.rb | 2 ++ spec/services/delete_account_service_spec.rb | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/services/delete_account_service.rb b/app/services/delete_account_service.rb index 0416686789..ff5bbea966 100644 --- a/app/services/delete_account_service.rb +++ b/app/services/delete_account_service.rb @@ -163,6 +163,8 @@ class DeleteAccountService < BaseService end def purge_statuses! + @account.statuses.reorder(nil).where(id: reported_status_ids).in_batches.update_all('deleted_at = COALESCE(statuses.deleted_at, NOW())') + @account.statuses.reorder(nil).where.not(id: reported_status_ids).in_batches do |statuses| BatchedRemoveStatusService.new.call(statuses, skip_side_effects: skip_side_effects?) end diff --git a/spec/services/delete_account_service_spec.rb b/spec/services/delete_account_service_spec.rb index 291ae8035c..d0861ac6e3 100644 --- a/spec/services/delete_account_service_spec.rb +++ b/spec/services/delete_account_service_spec.rb @@ -7,6 +7,7 @@ RSpec.describe DeleteAccountService do subject { described_class.new.call(account) } let!(:status) { Fabricate(:status, account: account) } + let!(:reported_status) { Fabricate(:status, account: account) } let!(:mention) { Fabricate(:mention, account: local_follower) } let!(:status_with_mention) { Fabricate(:status, account: account, mentions: [mention]) } let!(:media_attachment) { Fabricate(:media_attachment, account: account) } @@ -28,8 +29,13 @@ RSpec.describe DeleteAccountService do let!(:account_note) { Fabricate(:account_note, account: account) } let!(:generated_annual_report) { Fabricate(:generated_annual_report, account: account) } + before do + Fabricate(:report, target_account: account, status_ids: [reported_status.id]) + end + it 'deletes associated owned and target records and target notifications' do - subject + expect { subject } + .to change { reported_status.reload.deleted_at }.from(nil) expect_deletion_of_associated_owned_records expect_deletion_of_associated_target_records From 0f14d82050a3fbc165ddcab310e710d06d554d84 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 24 Sep 2026 12:28:59 +0000 Subject: [PATCH 20/25] Fix `POST /api/v1/accounts` still being accessible when `SSO_ACCOUNT_SIGN_UP` is set (#40681) --- app/controllers/api/v1/accounts_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/accounts_controller.rb b/app/controllers/api/v1/accounts_controller.rb index 8856b8e039..bcbd01a606 100644 --- a/app/controllers/api/v1/accounts_controller.rb +++ b/app/controllers/api/v1/accounts_controller.rb @@ -128,6 +128,6 @@ class Api::V1::AccountsController < Api::BaseController end def check_enabled_registrations - forbidden unless allowed_registration?(request.remote_ip, invite) + forbidden if ENV['SSO_ACCOUNT_SIGN_UP'].present? || !allowed_registration?(request.remote_ip, invite) end end From f9041ac4a798bb494a887620335936a1205b89f3 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Thu, 3 Sep 2026 16:33:28 +0000 Subject: [PATCH 21/25] [Glitch] Add link to homepage to 404 error page Port 38a85dfa0bf222bb886f499f56a7991af01386b4 to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/styles/mastodon/basics.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/flavours/glitch/styles/mastodon/basics.scss b/app/javascript/flavours/glitch/styles/mastodon/basics.scss index 87bbe20c73..25841c4afc 100644 --- a/app/javascript/flavours/glitch/styles/mastodon/basics.scss +++ b/app/javascript/flavours/glitch/styles/mastodon/basics.scss @@ -185,6 +185,7 @@ body { font-size: 20px; line-height: 28px; font-weight: 400; + margin-bottom: var(--space-md); } } } From adea1099bcf3d79b5ae7311ed9db4934b50f493e Mon Sep 17 00:00:00 2001 From: Tdxdxoz Date: Mon, 14 Sep 2026 09:00:59 +0000 Subject: [PATCH 22/25] [Glitch] Fix replies order Port cb7eb372ccf9f64ad528bd75de69306e84673bc4 to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/reducers/contexts.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/reducers/contexts.ts b/app/javascript/flavours/glitch/reducers/contexts.ts index 7c8bcb6a29..7f6ec44d68 100644 --- a/app/javascript/flavours/glitch/reducers/contexts.ts +++ b/app/javascript/flavours/glitch/reducers/contexts.ts @@ -55,7 +55,9 @@ const addReply = ( if (!state.inReplyTos[id]) { const siblings = (state.replies[in_reply_to_id] ??= []); - const index = siblings.findIndex((sibling) => compareId(sibling, id) < 0); + const index = siblings.findLastIndex( + (sibling) => compareId(sibling, id) < 0, + ); siblings.splice(index + 1, 0, id); state.inReplyTos[id] = in_reply_to_id; } From 5bc13b3a35d7c43fd0bab2e908a402cfc7d8cbd8 Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Mon, 14 Sep 2026 08:21:38 +0000 Subject: [PATCH 23/25] [Glitch] Fix z-index of PIP video player to be above the side panel Port dcb03a4272a9c0c86260e18f13a4c3c3667ff71c to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/styles/mastodon/components.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/flavours/glitch/styles/mastodon/components.scss b/app/javascript/flavours/glitch/styles/mastodon/components.scss index e1355f982d..171ee0c70b 100644 --- a/app/javascript/flavours/glitch/styles/mastodon/components.scss +++ b/app/javascript/flavours/glitch/styles/mastodon/components.scss @@ -9074,6 +9074,7 @@ noscript { bottom: 20px; inset-inline-end: 20px; width: 300px; + z-index: 100; background-color: var(--color-bg-primary); box-shadow: var(--dropdown-shadow); From f8764ac2da99a622393f456132553ebddefc7b38 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Tue, 25 Aug 2026 14:43:22 +0000 Subject: [PATCH 24/25] [Glitch] Fix description text overflowing on Overview landing page Port 868ea99ba51ff2f2607a0c725acca3185dde458b to glitch-soc Signed-off-by: Claire --- .../glitch/features/custom_homepage/styles.module.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/features/custom_homepage/styles.module.scss b/app/javascript/flavours/glitch/features/custom_homepage/styles.module.scss index 856f44b0e8..23f25b187a 100644 --- a/app/javascript/flavours/glitch/features/custom_homepage/styles.module.scss +++ b/app/javascript/flavours/glitch/features/custom_homepage/styles.module.scss @@ -42,12 +42,13 @@ } p { + overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; + line-clamp: 2; font-size: 16px; line-height: 24px; - text-overflow: ellipsis; } } From 8c40898ed1ba90bf272abd3ddf16fbd581c3675b Mon Sep 17 00:00:00 2001 From: diondiondion Date: Mon, 21 Sep 2026 14:35:12 +0000 Subject: [PATCH 25/25] [Glitch] Fix mobile navigation covering up "Next step" button during onboarding Port 6db89897126f071fe2d196d9ab6d0344e7d53b95 to glitch-soc Signed-off-by: Claire --- .../flavours/glitch/styles/mastodon/components.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/styles/mastodon/components.scss b/app/javascript/flavours/glitch/styles/mastodon/components.scss index 171ee0c70b..c8d7e66c71 100644 --- a/app/javascript/flavours/glitch/styles/mastodon/components.scss +++ b/app/javascript/flavours/glitch/styles/mastodon/components.scss @@ -11385,10 +11385,14 @@ noscript { } .column-footer { - padding: 16px; position: sticky; bottom: 0; + padding: 16px; background: var(--color-bg-primary); + + @media (width <= $mobile-menu-breakpoint) { + padding-bottom: calc(16px + var(--mobile-bottom-nav-height, 0)); + } } .lists-scrollable {