Skip to content

Releases: mastodon/mastodon

v4.0.0

14 Nov 19:48
fb389bd
Compare
Choose a tag to compare

Mastodon

Upgrade overview

This release contains upgrade notes that deviate from the norm:

ℹ️ Requires two-step database migration process for zero-downtime deployment
ℹ️ Some migrations may take a long time to run
ℹ️ Behaviour of AUTHORIZED_FETCH changed
ℹ️ Requires review of Sidekiq queues in some setups (new queue: ingress)
ℹ️ Some server settings, like thumbnail, short description, and so on, changed and may need to be looked at

For more information, scroll down to the upgrade instructions section.

Changelog

Some of the features in this release have been funded through the NGI0 Discovery Fund, a fund established by NLnet with financial support from the European Commission's Next Generation Internet programme, under the aegis of DG Communications Networks, Content and Technology under grant agreement No 825322.

Added

Changed

Read more

v4.0.0rc4

14 Nov 07:56
75299a0
Compare
Choose a tag to compare
v4.0.0rc4 Pre-release
Pre-release

Mastodon

Note: This is a release candidate. It is intended to be stable, but not guaranteed.

For all notes, see v4.0.0rc1. This update includes a variety of fixes and improvements. Upgrading from v4.0.0rc3 requires a code update, assets precompilation, and a web process reload/restart.

v3.5.5

14 Nov 21:29
Compare
Choose a tag to compare

Mastodon

This is a backport for the 3.5.x branch.

Changelog

Fixed

  • Fix nodes order being sometimes mangled when rewriting emoji (ClearlyClaire)

Upgrade notes

Because this is a backport, it is not available with git pull. Use git fetch && git checkout v3.5.5

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 not changed compared to v3.5.3, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:

  • Ruby: 2.6 to 3.0
  • PostgreSQL: 9.5 or newer
  • Elasticsearch (optional, for full-text search): 7.x
  • Redis: 4 or newer
  • Node: 12.22 or newer

Update steps

The following instructions are for updating from 3.5.3.

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 or dependency updates.

Non-Docker

  1. Pull the code: git fetch && git checkout v3.5.5
  2. Rebuild assets:
    RAILS_ENV=production bundle exec rails assets:precompile
  3. Restart mastodon-web and mastodon-sidekiq:
    systemctl reload mastodon-web
    systemctl restart mastodon-sidekiq

Docker

The exact steps depend on your setup, but they are likely to match the following:

  1. Pull the code: git fetch && git checkout v3.5.5
  2. Pull the prebuilt images: docker-compose pull, or, alternatively, build them yourself: docker-compose build --pull
  3. Restart all Mastodon processes: docker-compose up -d

v3.5.4

14 Nov 19:24
Compare
Choose a tag to compare

Mastodon

This is a backport for the 3.5.x branch.

Changelog

Fixed

  • Fix error when a remote report includes a private post the server has no access to (ClearlyClaire)

Security

  • Fix emoFix emoji substitution not applying only to text nodes in backend code (ClearlyClaire)
  • Fix emoji substitution not applying only to text nodes in Web UI (ClearlyClaire)
  • Fix rate limiting for paths with formats (Gargron)
  • Fix out-of-bound reads in blurhash transcoder (delroth)

Upgrade notes

Because this is a backport, it is not available with git pull. Use git fetch && git checkout v3.5.4

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 not changed compared to v3.5.3, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:

  • Ruby: 2.6 to 3.0
  • PostgreSQL: 9.5 or newer
  • Elasticsearch (optional, for full-text search): 7.x
  • Redis: 4 or newer
  • Node: 12.22 or newer

Update steps

The following instructions are for updating from 3.5.3.

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 or dependency updates.

Non-Docker

  1. Pull the code: git fetch && git checkout v3.5.4
  2. Rebuild assets:
    RAILS_ENV=production bundle exec rails assets:precompile
  3. Restart mastodon-web and mastodon-sidekiq:
    systemctl reload mastodon-web
    systemctl restart mastodon-sidekiq

Docker

The exact steps depend on your setup, but they are likely to match the following:

  1. Pull the code: git fetch && git checkout v3.5.4
  2. Pull the prebuilt images: docker-compose pull, or, alternatively, build them yourself: docker-compose build --pull
  3. Restart all Mastodon processes: docker-compose up -d

v3.4.10

14 Nov 21:28
Compare
Choose a tag to compare

Mastodon

This is a backport for the 3.4.x branch.

Changelog

Fixed

  • Fix nodes order being sometimes mangled when rewriting emoji (ClearlyClaire)

Upgrade notes

Because this is a backport, it is not available with git pull. Use git fetch && git checkout v3.4.10

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 not changed compared to v3.4.7, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:

  • Ruby: 2.6 to 3.0
  • PostgreSQL: 9.5 or newer
  • Elasticsearch (optional, for full-text search): 5.x, 6.x or 7.x
  • Redis: 4 or newer
  • Node: 12.22 or higher

Update steps

The following instructions are for updating from 3.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 or dependency updates.

Non-Docker

  1. Pull the code: git fetch && git checkout v3.4.10
  2. Rebuild assets:
    RAILS_ENV=production bundle exec rails assets:precompile
  3. Restart mastodon-web and mastodon-sidekiq:
    systemctl reload mastodon-web
    systemctl restart mastodon-sidekiq

Docker

The exact steps depend on your setup, but they are likely to match the following:

  1. Pull the code: git fetch && git checkout v3.4.10
  2. Pull the prebuilt images: docker-compose pull, or, alternatively, build them yourself: docker-compose build --pull
  3. Restart all Mastodon processes: docker-compose up -d

v3.4.9

14 Nov 19:23
Compare
Choose a tag to compare

Mastodon

This is a backport for the 3.4.x branch.

Changelog

Security

  • Fix emoji substitution not applying only to text nodes in backend code (ClearlyClaire)
  • Fix emoji substitution not applying only to text nodes in Web UI (ClearlyClaire)
  • Fix rate limiting for paths with formats (Gargron)
  • Fix out-of-bound reads in blurhash transcoder (delroth)

Upgrade notes

Because this is a backport, it is not available with git pull. Use git fetch && git checkout v3.4.9

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 not changed compared to v3.4.7, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:

  • Ruby: 2.6 to 3.0
  • PostgreSQL: 9.5 or newer
  • Elasticsearch (optional, for full-text search): 5.x, 6.x or 7.x
  • Redis: 4 or newer
  • Node: 12.22 or higher

Update steps

The following instructions are for updating from 3.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 or dependency updates.

Non-Docker

  1. Pull the code: git fetch && git checkout v3.4.9
  2. Rebuild assets:
    RAILS_ENV=production bundle exec rails assets:precompile
  3. Restart mastodon-web and mastodon-sidekiq:
    systemctl reload mastodon-web
    systemctl restart mastodon-sidekiq

Docker

The exact steps depend on your setup, but they are likely to match the following:

  1. Pull the code: git fetch && git checkout v3.4.9
  2. Pull the prebuilt images: docker-compose pull, or, alternatively, build them yourself: docker-compose build --pull
  3. Restart all Mastodon processes: docker-compose up -d

v4.0.0rc3

11 Nov 08:22
5e796dc
Compare
Choose a tag to compare
v4.0.0rc3 Pre-release
Pre-release

Mastodon

Note: This is a release candidate. It is intended to be stable, but not guaranteed.

Upgrade overview

This release contains upgrade notes that deviate from the norm:

ℹ️ Requires two-step database migration process for zero-downtime deployment
ℹ️ Some migrations may take a long time to run
ℹ️ Behaviour of AUTHORIZED_FETCH changed
ℹ️ Requires review of Sidekiq queues in some setups. This also applies to updating from v4.0.0rc2

For more information, scroll down to the upgrade instructions section.

Changelog

TBD. This update includes a variety of fixes and improvements on top of v4.0.0rc1.

Upgrade notes

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

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

Update steps

The following instructions are for updating from 3.5.3.

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.

Non-Docker only:

  • The recommended Ruby version has been bumped to 3.0.4. You can upgrade, or you can continue using the old version by overwriting the .ruby-version file with e.g. 3.0.3 which was recommended previously
  • Install dependencies: bundle install and yarn install

Both Docker and non-Docker:

⚠️ Incoming federated activity now uses a new ingress queue in Sidekiq. If you customize Sidekiq processes/queues, ensure that there is at least one process handling the ingress queue.

  1. Run the pre-deployment database migrations by specifying the SKIP_POST_DEPLOYMENT_MIGRATIONS=true environment variable:
    • Non-Docker: SKIP_POST_DEPLOYMENT_MIGRATIONS=true RAILS_ENV=production bundle exec rails db:migrate
    • Docker: docker-compose run --rm -e SKIP_POST_DEPLOYMENT_MIGRATIONS=true web rails db:migrate
  2. Precompile the assets:
    • Non-Docker: RAILS_ENV=production bundle exec rails assets:precompile
    • Docker: The assets are already precompiled during the build step
  3. Restart all Mastodon processes
  4. Now that the new code is running, we can finish the database migrations. This will run the post-deployment ones:
    • Non-Docker: RAILS_ENV=production bundle exec rails db:migrate
    • Docker: docker-compose run --rm web rails db:migrate
  5. Restart all Mastodon processes

For all notes, see v4.0.0rc1. This update includes a variety of fixes and improvements. Upgrading from v4.0.0rc1 requires a code update, assets precompilation, and a web process reload/restart.

v4.0.0rc2

06 Nov 06:05
5187e4e
Compare
Choose a tag to compare
v4.0.0rc2 Pre-release
Pre-release

Mastodon

Note: This is a release candidate. It is intended to be stable, but not guaranteed.

For all notes, see v4.0.0rc1. This update fixes a performance regression in account search when not using Elasticsearch, introduced in v4.0.0rc1. Upgrading from v4.0.0rc1 requires only the code update and a web process reload/restart.

v4.0.0rc1

05 Nov 22:39
58fc889
Compare
Choose a tag to compare
v4.0.0rc1 Pre-release
Pre-release

Mastodon

Note: This is a release candidate. It is intended to be stable, but not guaranteed.

Upgrade overview

This release contains upgrade notes that deviate from the norm:

ℹ️ Requires two-step database migration process for zero-downtime deployment
ℹ️ Some migrations may take a long time to run
ℹ️ Behaviour of AUTHORIZED_FETCH changed

For more information, scroll down to the upgrade instructions section.

Changelog

Some of the features in this release have been funded through the NGI0 Discovery Fund, a fund established by NLnet with financial support from the European Commission's Next Generation Internet programme, under the aegis of DG Communications Networks, Content and Technology under grant agreement No 825322.

Added

Changed

Read more

v3.5.3

26 May 21:27
fbcbf78
Compare
Choose a tag to compare

Mastodon

Changelog

Added

  • Add language dropdown to compose form in web UI (Gargron, ykzts)
  • Add warning for limited accounts in web UI (Gargron)
  • Add limited attribute to accounts in REST API (Gargron)

Changed

  • Change RSS feeds (Gargron, tribela)
    • Titles are now date and time of post
    • Bodies now render all content faithfully, including polls and emojis
    • All media attachments are included with Media RSS
  • Change "dangerous" to "sensitive" in privacy policy and web UI (Gargron)
  • Change unconfirmed accounts to not be visible in REST API (ClearlyClaire)
  • Change tootctl search deploy to improve performance (Gargron, Gargron)
  • Change search indexing to use batches to minimize resource usage (Gargron)

Fixed

  • Fix follower and other counters being able to go negative (Gargron)
  • Fix unnecessary query when creating a status (ClearlyClaire)
  • Fix warning an account outside of a report closing all reports for that account (ClearlyClaire)
  • Fix error when resolving a link that redirects to a local post (ClearlyClaire)
  • Fix preferred posting language returning unusable value in REST API (Gargron)
  • Fix race condition error when external status is reblogged (ykzts)
  • Fix missing string for appeal validation error (Gargron)
  • Fix block/mute lists showing a follow button in web UI (ClearlyClaire)
  • Fix Redis configuration not being changed by mastodon:setup (ClearlyClaire)
  • Fix streaming notifications not using quick filter logic in web UI (ClearlyClaire)
  • Fix ambiguous wording on appeal actions in admin UI (ClearlyClaire)
  • Fix floating action button obscuring last element in web UI (ClearlyClaire)
  • Fix account warnings not being recorded in audit log (ClearlyClaire)
  • Fix leftover icons for direct visibility statuses (Steffo99)
  • Fix link verification requiring case sensitivity on links (sgolemon)
  • Fix embeds not setting their height correctly (rinsuki)

Security

  • Fix concurrent unfollowing decrementing follower count more than once (Gargron)
  • Fix being able to appeal a strike unlimited times (Gargron)
  • Fix being able to report otherwise inaccessible statuses (Gargron)
  • Fix empty votes arbitrarily increasing voters count in polls (Gargron)
  • Fix moderator identity leak when approving appeal of sensitive marked statuses (Gargron)
  • Fix suspended users being able to access APIs that don't require a user (Gargron)
  • Fix confirmation redirect to app without Location header (Gargron)

Upgrade notes

To get the code for v3.5.3, use git fetch && git checkout v3.5.3.

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

Dependencies have not changed. To summarize, the dependency requirements for v3.5.3 are:

  • Ruby: 2.6 up to 3.0
  • PostgreSQL: 9.5 or newer
  • Elasticsearch (optional, for full-text search): 7.x
  • Redis: 4 or newer
  • Node: 12 or newer

Update steps

The following instructions are for updating from 3.5.2.

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.

Non-Docker only:

  • Install dependencies: bundle install and yarn install

Both Docker and non-Docker:

  1. Precompile the assets:
    • Non-Docker: RAILS_ENV=production bundle exec rails assets:precompile
    • Docker: The assets are already precompiled during the build step
  2. Restart all Mastodon processes