v4.1.0rc2
Pre-releaseNote: This is a release candidate. It is intended to be stable, but not guaranteed.
Changelog
For changes since v4.0.2, see the full notes for v4.1.0rc1.
Added
- Add LDSignatures back on actor Delete activities (ClearlyClaire)
- Add
policy
attribute to web push subscription objects in/api/v1/push/subscriptions
(ClearlyClaire) - Add
lang
attribute to compose form inputs (ClearlyClaire)
Changed
- Change email address input to be read-only for logged-in users when requesting a new confirmation e-mail (ClearlyClaire)
Fixed
- Fix error when handling reports without providing a textual explanation (tribela)
- Fix filters not being applied to some notification types (ClearlyClaire)
- Fix moderation audit log items for warnings having incorrect links (ClearlyClaire)
- Fix account activation being sometimes triggered before email confirmation (ClearlyClaire)
- Fix audio player volume control on Safari (minacle)
- Fix drag & drop upload area display in single-column mode (ClearlyClaire)
- Fix email with empty domain name labels passing validation (ClearlyClaire)
- Fix error in
VerifyLinkService
when processing links with invalid URLs (untitaker)
Upgrade notes
To get the code for v4.1.0rc2, use git fetch && git checkout v4.1.0rc2
.
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 v4.0.2, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:
- Ruby: 2.7 to 3.0
- PostgreSQL: 9.5 or newer
- Elasticsearch (optional, for full-text search): 7.x
- Redis: 4 or newer
- Node: 14 or higher
Update steps
The following instructions are for updating from 4.0.2 or 4.1.0rc1.
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
andyarn install
Both Docker and non-Docker:
- Run the database migrations:
- Non-Docker:
RAILS_ENV=production bundle exec rails db:migrate
- Docker:
docker-compose run --rm web rails db:migrate
- Non-Docker:
- Precompile the assets:
- Non-Docker:
RAILS_ENV=production bundle exec rails assets:precompile
- Docker: The assets are already precompiled during the build step
- Non-Docker:
- Restart all Mastodon processes