Skip to content

v4.5.0

Choose a tag to compare

@ClearlyClaire ClearlyClaire released this 06 Nov 13:19
· 247 commits to stable-4.5 since this release
26c7839

Mastodon

For a user-focused highlight of these changes, see https://blog.joinmastodon.org/2025/11/mastodon-4.5/
For changes of particular interest to application developers, see https://blog.joinmastodon.org/2025/10/mastodon-4-5-for-devs/
For a more detailed run-down on the changes, see the Changelog section below!

Upgrade overview

This release contains upgrade notes that deviate from the norm:

⚠️ The minimum supported version for Redis has been bumped to 7.0
⚠️ The minimum supported version for PostgreSQL has been bumped to PostgreSQL 14
⚠️ The minimum supported version for Node.js has been bumped to 20.19
⚠️ Rolling updates from versions earlier than Mastodon 4.3 are not supported
⚠️ Import jobs from Mastodon versions earlier than Mastodon 4.2 are not supported
ℹ️ Sidekiq has been updated, which may require you to change health check or monitoring code
ℹ️ Requires streaming server restart
ℹ️ Requires database migrations

For more information, view the complete release notes and scroll down to the upgrade instructions section.

Changelog

Added

Changed

  • Change confirmation dialogs for follow button actions “unfollow”, “unblock”, and “withdraw request” (#36289 by @diondiondion)
  • Change “Follow” button labels (#36264 by @diondiondion)
  • Change appearance settings to introduce new Advanced settings section (#36496 and #36506 by @diondiondion)
  • Change display of blocked and muted quoted users (#36619 by @ClearlyClaire)
    This adds blocked_account, blocked_domain and muted_account values to the state attribute of Quote and ShallowQuote REST API entities.
  • Change submitting an empty post to show an error rather than failing silently (#36650 by @diondiondion)
  • Change "Privacy and reach" settings from "Public profile" to their own top-level category (#27294 by @ChaelCodes)
  • Change number of times quote verification is retried to better deal with temporary failures (#36698 by @ClearlyClaire)
  • Change display of content warnings in Admin UI (#35935 by @ThisIsMissEm)
  • Change styling of column banners (#36531 by @ClearlyClaire)
  • Change recommended Node version to 24 (LTS) (#36539 by @renchap)
  • Change min. characters required for logged-out account search from 5 to 3 (#36487 by @Gargron)
  • Change browser target to Vite legacy plugin defaults (#36611 by @larouxn)
  • Change index on follows table to improve performance of some queries (#36374 by @ClearlyClaire)
  • Change links to accounts in settings and moderation views to link to local view unless account is suspended (#36340 by @diondiondion)
  • Change redirection for denied registration from web app to sign-in page with error message (#36384 by @ClearlyClaire)
  • Change support for RFC9421 HTTP signatures to be enabled unconditionally (#36610 by @oneiros)
  • Change wording and design of interaction dialog to simplify it (#36124 by @diondiondion)
  • Change dropdown menus to allow disabled items to be focused (#36078 by @diondiondion)
  • Change modal background colours in light mode (#36069 by @diondiondion)
  • Change “Posting defaults” settings page to enforce nobody quote policy for private default visibility (#36040 by @ClearlyClaire)
  • Change description of “Quiet public” (#36032 by @ClearlyClaire)
  • Change “Boost with original visibility” to “Share again with your followers” (#36035 by @ClearlyClaire)
  • Change handling of push subscriptions to automatically delete invalid ones on delivery (#35987 by @ThisIsMissEm)
  • Change design of quote posts in web UI (#35584 and #35834 by @Gargron)
  • Change auditable accounts to be sorted by username in admin action logs interface (#35272 by @breadtk)
  • Change order of translation restoration and service credit on post card (#33619 by @colindean)
  • Change position of ‘add more’ to be inside table toolbar on reports (#35963 by @ThisIsMissEm)
  • Change docker-compose.yml sidekiq health check to work for both 4.4 and 4.5 (#36498 by @ClearlyClaire)

Fixed

Removed

Upgrade notes

To get the code for v4.5.0, use git fetch && git checkout v4.5.0.

Note

As always, make sure you have backups of the database before performing any upgrades. If you are using docker-compose, this is how a backup command might look: docker exec mastodon_db_1 pg_dump -Fc -U postgres postgres > name_of_the_backup.dump

Dependencies

External dependencies have changed since v4.4.0, with the Redis, PostgreSQL and Node.js minimum version being higher.

  • Ruby: 3.2 or newer
  • PostgreSQL: 14 or newer
  • Elasticsearch (recommended, for full-text search): 7.x (OpenSearch should also work)
  • LibreTranslate (optional, for translations): 1.3.3 or newer
  • Redis: 7.0 or newer
  • Node: 20.19 or newer
  • libvips (optional, instead of ImageMagick): 8.13 or newer
  • ImageMagick (optional if using libvips): 6.9.7-7 or newer

Sidekiq update and health checks

We have updated Sidekiq from Sidekiq 7 to Sidekiq 8, but the health check we used to provide in docker-compose.ymlspecifically checks for Sidekiq 7. If you use docker-compose.yml from the release, it has already been updated. But if you copied or adapted the old health check, you will need to update it to test for Sidekiq 8.

Instead of the following line:

test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 7' || false"]

It should read:

test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 8' || false"]

Update steps

The following instructions are for updating from 4.4.8.

If you are upgrading directly from an earlier release, please carefully read the upgrade notes for the skipped releases as well, as they often require extra steps such as database migrations. If you are upgrading from a pre-4.3 version, please fully update to Mastodon 4.3 first or stop all Mastodon processes before updating, and please have a look at the “Ongoing import jobs from Mastodon 4.1 and earlier” section of Mastodon 4.4.0's release notes if you are updating from a pre-4.2 version.

Non-Docker

Tip

The charlock_holmes gem may fail to build on some systems with recent versions of gcc.
If you run into this issue, try BUNDLE_BUILD__CHARLOCK_HOLMES="--with-cxxflags=-std=c++17" bundle install.

  1. If you are using rbenv:
    1. update the list of available versions
    2. then, install the proper Ruby version by doing RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install in the Mastodon install directory (e.g. /home/mastodon/live)
  2. Install dependencies with bundle install and yarn install --immutable
  3. Precompile the assets: RAILS_ENV=production bundle exec rails assets:precompile
  4. Run the database migrations: RAILS_ENV=production bundle exec rails db:migrate
  5. Restart all Mastodon processes.

When using Docker

  1. Run the database migrations: docker-compose run --rm web bundle exec rails db:migrate
  2. Restart all Mastodon processes.

Update steps from a Mastodon 4.5 pre-release

The following instructions are for updating from a Mastodon 4.5 pre-release (4.5.0-beta.1, 4.5.0-beta.2, 4.5.0-rc.1, v4.5.0-rc.2 or v4.5.0-rc.3). See the section above if you are updating from an older version.

Non-Docker

Tip

The charlock_holmes gem may fail to build on some systems with recent versions of gcc.
If you run into this issue, try BUNDLE_BUILD__CHARLOCK_HOLMES="--with-cxxflags=-std=c++17" bundle install.

  1. Install dependencies with bundle install and yarn install --immutable
  2. Precompile the assets: RAILS_ENV=production bundle exec rails assets:precompile
  3. Run database migrations: RAILS_ENV=production bundle exec rails db:migrate
  4. Restart all Mastodon processes.

When using Docker

  1. Run database migrations: RAILS_ENV=production bundle exec rails db:migrate
  2. Restart all Mastodon processes.