- Fix being unable to vote in polls without an expiration date
- Fix performance of user-focused queries in admin dashboard
- Fix Web Push subscription deletion endpoint incorrectly expecting anti-CSRF tokens
- Fix ActivityPub::Activity::Create trying to re-create known statuses when author changes
- Fix typo in quotes list error handling
- Fix lax relevancy check in inbound activity processing
- Fix Account::Merging concern not supporting Quotes, refactor it
- Fix suspended accounts not being removed from follow request count in /api/v1/accounts/verify_credentials
- Fix followed tags not being properly cleaned up when an account is deleted
- Fix CW being copied to body when editing quote posts with empty text
- Fix handling of QuoteRequest rejections when those can't be found by id
- Fix autofollow option being ignored in invite moderation interface
- Fix incorrect permission enforcement
- Fix SSRF protection bypass via IPv4-compatible IPv6 addresses
- Update dependencies
Upgrade overview
This release contains upgrade notes that deviate from the norm:
ℹ️ Requires assets recompilation
For more information, view the complete release notes and scroll down to the upgrade instructions section.
Changelog
Security
- Fix incorrect permission enforcement (GHSA-7jvv-fhmg-wpfw)
- Fix SSRF protection bypass via IPv4-compatible IPv6 addresses (GHSA-vwhj-3g83-v276)
- Update dependencies
Fixed
- Fix being unable to vote in polls without an expiration date (#39949 by @ClearlyClaire)
- Fix performance of user-focused queries in admin dashboard (#39929 by @ClearlyClaire)
- Fix Web Push subscription deletion endpoint incorrectly expecting anti-CSRF tokens (#39918 by @ClearlyClaire)
- Fix
ActivityPub::Activity::Createtrying to re-create known statuses when author changes (#39916 by @ClearlyClaire) - Fix typo in quotes list error handling (#39904 by @shleeable)
- Fix lax relevancy check in inbound activity processing (#39892 by @ClearlyClaire)
- Fix
Account::Mergingconcern not supporting Quotes, refactor it (#39884 by @ClearlyClaire) - Fix suspended accounts not being removed from follow request count in
/api/v1/accounts/verify_credentials(#39858 by @ClearlyClaire) - Fix followed tags not being properly cleaned up when an account is deleted (#39824 by @shleeable)
- Fix CW being copied to body when editing quote posts with empty text (#39823 and #39837 by @shleeable and @ClearlyClaire)
- Fix handling of
QuoteRequestrejections when those can't be found byid(#39820 by @shleeable) - Fix autofollow option being ignored in invite moderation interface (#39819 by @shleeable)
Upgrade notes
To get the code for v4.5.14, use git fetch && git checkout v4.5.14.
[!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 not changed since v4.5.0.
- 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
Update steps
The following instructions are for updating from 4.5.13.
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. In particular, it is very important to read the 4.5.0 release notes.
Non-Docker
[!TIP] The
charlock_holmesgem may fail to build on some systems with recent versions of gcc. If you run into this issue, tryBUNDLE_BUILD__CHARLOCK_HOLMES="--with-cxxflags=-std=c++17" bundle install.
- Install dependencies with
bundle installandyarn install --immutable - Precompile the assets:
RAILS_ENV=production bundle exec rails assets:precompile - Restart all Mastodon processes.
When using Docker
- Restart all Mastodon processes.