v4.1.0rc1
Pre-releaseNote: This is a release candidate. It is intended to be stable, but not guaranteed.
Changelog
Added
- Add support for importing/exporting server-wide domain blocks (enbylenore, ClearlyClaire, dariusk, ClearlyClaire)
- Add listing of followed hashtags (connorshea)
- Add support for editing media description and focus point of already-sent posts (ClearlyClaire)
- Add follow request banner on account header (ClearlyClaire)
- Add confirmation screen when handling reports (ClearlyClaire, Gargron)
- Add option to make the landing page be
/about
even when trends are enabled (ClearlyClaire) - Add
noindex
setting back to the admin interface (prplecake) - Add instance peers API endpoint toggle back to the admin interface (dariusk)
- Add instance activity API endpoint toggle back to the admin interface (dariusk)
- Add
account.approved
webhook (Saiv46) - Add 12 hours option to polls (Pleclown)
- Add dropdown menu item to open admin interface for remote domains (ClearlyClaire)
- Add
--remove-headers
,--prune-profiles
and--include-follows
flags totootctl media remove
(evanphilip) - Add
--email
and--dry-run
options totootctl accounts delete
(ClearlyClaire) - Add
tootctl accounts migrate
(ClearlyClaire) - Add
tootctl accounts prune
(tribela) - Add
tootctl domains purge
(ClearlyClaire) - Add
SIDEKIQ_CONCURRENCY
environment variable (muffinista) - Add
MIN_THREADS
environment variable to set minimum Puma threads (jimeh) - Add explanation text to log-in page (ClearlyClaire)
- Add user profile OpenGraph tag on post pages (bramus)
- Add maskable icon support for Android (workeffortwaste)
- Add Belarusian to supported languages (Mixaill)
- Add Western Frisian to supported languages (ykzts)
- Add Montenegrin to the language picker (ayefries)
- Add Southern Sami and Lule Sami to the language picker (Jullan-M)
- Add logging for Rails cache timeouts (ClearlyClaire)
- Add color highlight for active hashtag “follow” button (MFTabriz)
- Add brotli compression to
assets:precompile
(Izorkin) - Add “disabled” account filter to the
/admin/accounts
UI (tribela) - Add transparency to modal background for accessibility (edent)
- Add
title
attribute to video elements in media attachments (bramus) - Add left and right margins to emojis (dsblank)
- Add
reading:autoplay:gifs
to/api/v1/preferences
(j-f1) - Add
hide_collections
parameter to/api/v1/accounts/credentials
(CarlSchwan) - Add more specific error messages to HTTP signature verification (ClearlyClaire)
- Add Storj DCS to cloud object storage options in the
mastodon:setup
rake task (jtolio) - Add checkmark symbol in the checkbox for sensitive media (sidp)
- Add missing accessibility attributes to logout link in modals (kytta)
- Add missing accessibility attributes to “Hide image” button in
MediaGallery
(hs4man21) - Add missing accessibility attributes to hide content warning field when disabled (hs4man21)
- Add
aria-hidden
to footer circle dividers to improve accessibility (hs4man21)
Changed
- Ensure exact match is the first result in hashtag searches (ClearlyClaire)
- Change account search to return followed accounts first (dariusk)
- Change batch account suspension to create a strike (ClearlyClaire)
- Change default reply language to match the default language when replying to a translated post (ClearlyClaire)
- Change misleading wording about waitlists (ClearlyClaire)
- Increase width of the unread notification border (connorshea)
- Change new post notification button on profiles to make it more apparent when it is enabled (tribela)
- Change trending tags admin interface to always show batch action controls (ClearlyClaire)
- Change wording of some OAuth scope descriptions (ClearlyClaire)
- Change wording of admin report handling actions (ClearlyClaire)
- Change confirm prompts for relationships management (tribela)
- Change language surrounding disability in prompts for media descriptions (hs4man21)
- Change confusing wording in the sign in banner (ClearlyClaire)
- Change account moderation notes to make links clickable (ClearlyClaire)
- Save avatar or header correctly even if the other one fails (tribela)
- Change
referrer-policy
tosame-origin
application-wide (ClearlyClaire, ClearlyClaire) - Add 'private' to
Cache-Control
, match Rails expectations (daxtens) - Make the button that expands the compose form differentiable from the button that publishes a post (Tak)
- Change automatic post deletion configuration to be accessible to moved users (ClearlyClaire)
- Make tag following idempotent (trwnh, ClearlyClaire)
- Use buildx functions for faster builds (inductor)
- Split off Dockerfile components for faster builds (moritzheiber, ineffyble, BtbN)
- Change last occurrence of “silence” to “limit” in UI text (cincodenada)
- Change “hide toot” to “hide post” (seanthegeek)
- Don't allow URLs that contain non-normalized paths to be verified (dgl)
- Change the “Trending now” header to be a link to the Explore page (connorshea)
- Change PostgreSQL connection timeout from 2 minutes to 15 seconds (ClearlyClaire)
- Make handle more easily selectable on profile page (cadars)
- Allow admins to refresh remotely-suspended accounts (ClearlyClaire)
- Change dropdown menu to contain “Copy link to post” even for non-public posts (ClearlyClaire)
- Allow adding relays in secure mode and limited federation mode (ineffyble)
- Change timestamps to be displayed using the user's timezone throughout the moderation interface (FrancisMurillo, ClearlyClaire)
- Change CSP directives on API to be tight and concise (ClearlyClaire)
- Change web UI to not autofocus the compose form (raboof)
- Change idempotency key handling for posting when database access is slow (lambda)
- Change remote media files to be downloaded outside of transactions (ClearlyClaire)
- Improve contrast of charts in “poll has ended” notifications (j-f1)
- Change OEmbed detection and validation to be somewhat more lenient (ineffyble)
- Widen ElasticSearch version detection to not display a warning for OpenSearch (VyrCossont, ClearlyClaire)
- Change link verification to allow pages larger than 1MB as long as the link is in the first 1MB (untitaker)
- Update default Node.js version to Node.js 16 (ineffyble, ClearlyClaire)
Removed
- Officially remove support for Ruby 2.6 (ClearlyClaire)
- Remove LDSignature on actor Delete activities (ClearlyClaire)
- Remove
object-fit
polyfill used for old versions of Microsoft Edge (shuuji3) - Remove empty
title
tag from mailer layout (nametoolong)
Fixed
- Fix changing domain block severity not undoing individual account effects (ClearlyClaire)
- Fix suspension worker crashing on S3-compatible setups without ACL support (ClearlyClaire)
- Fix possible race conditions when suspending/unsuspending accounts (ClearlyClaire)
- Fix being stuck in edit mode when deleting the edited status (ClearlyClaire)
- Fix some performance issues with
/admin/instances
(ClearlyClaire) - Fix some pre-4.0 admin audit logs (ClearlyClaire)
- Fix missing OAuth scopes for admin APIs (trwnh, trwnh)
- Fix voter count not being cleared when a poll is reset (afontenot)
- Fix attachments of edited statuses not being fetched (ClearlyClaire)
- Fix irreversible and whole_word parameters handling in
/api/v1/filters
(ClearlyClaire) - Fix 500 error when marking posts as sensitive while some of them are deleted (ClearlyClaire)
- Fix expanded statuses not always being scrolled into view (ClearlyClaire)
- Fix not being able to scroll the remote interaction modal on small screens (xendke)
- Fix disappearing “Explore” tabs on Safari (nyura, ykzts)
- Fix wrong padding in RTL layout (Gargron)
- Fix being unable to get a single EmailDomainBlock from the admin API (trwnh)
- Fix pagination of followed tags (trwnh)
- Fix dropdown menu positions when scrolling (sidp, ClearlyClaire)
- Fix mysterious registration failure when “Require a reason to join” is set with open registrations (ClearlyClaire)
- Fix attachment rendering of edited posts in OpenGraph (ClearlyClaire)
- Fix invalid/empty RSS feed link on account pages (ClearlyClaire)
- Fix error in
VerifyLinkService
when processing links with no href (joshuap) - Fix media uploads with FFmpeg 5 (dead10ck)
- Fix sensitive flag not being set when replying to a post with a content warning under certain conditions (kedamaDQ)
- Fix “Share @:user's profile” profile menu item not working (ClearlyClaire)
- Fix crash and incorrect behavior in
tootctl domains crawl
(ClearlyClaire) - Fix autoplay on iOS (jamesadney)
- Fix spaces not being stripped in admin account search (ClearlyClaire)
- Fix spaces not being stripped when adding relays (ClearlyClaire)
- Fix infinite loading spinner instead of soft 404 for non-existing remote accounts (ClearlyClaire)
- Fix minor visual issue with the top border of verified account fields (j-f1)
- Fix pending account approval and rejection not being recorded in the admin audit log (FrancisMurillo)
- Fix “Sign up” button with closed registrations not opening modal on mobile (ClearlyClaire)
- Fix UI header overflowing on mobile (ClearlyClaire)
- Fix 500 error when trying to migrate to an invalid address (ClearlyClaire)
- Fix crash when trying to fetch unobtainable avatar of user using external authentication (lochiiconnectivity)
- Fix potential duplicate statuses in Explore tab (ClearlyClaire)
- Fix deprecation warning in
tootctl accounts rotate
(ClearlyClaire) - Fix missing style in warning and strike cards (AtelierSnek, ClearlyClaire)
- Fix wasteful request to
/api/v1/custom_emojis
when not logged in (ClearlyClaire) - Fix replies sometimes being delivered to user-blocked domains (tribela)
- Fix admin dashboard crash when using some ElasticSearch replacements (cortices)
- Fix profile avatar being slightly offset into left border (RiedleroD)
- Fix N+1 queries in
NotificationsController
(nametoolong) - Fix being unable to react to announcements with the keycap number sign emoji (kescherCode)
- Fix height computation of post embeds (hodgesmr)
- Fix accessibility issue of the search bar due to hidden placeholder (alexstine)
- Fix layout change handler not being removed due to a typo (nschonni)
- Fix typo in the default
S3_HOSTNAME
used in themastodon:setup
rake task (danp) - Fix the top action bar appearing in the multi-column layout (ClearlyClaire)
- Fix inability to use local LibreTranslate without setting
ALLOWED_PRIVATE_ADDRESSES
(ClearlyClaire) - Fix punycoded local domains not being prettified in initial state (Tritlo)
- Fix CSP violation warning by removing inline CSS from SVG logo (luxiaba)
- Fix margin for search field on medium window size (minacle)
- Fix search popout scrolling with the page in single-column mode (rgroothuijsen)
- Fix minor status cache hydration discrepancy (ClearlyClaire)
- Fix
・
detection in hashtags (parthoghosh24) - Fix hashtag follows bypassing user blocks (tribela)
- Fix moved accounts being incorrectly redirected to account settings when trying to view a remote profile (ClearlyClaire)
- Fix site upload validations (ClearlyClaire)
- Fix “Add new domain block” button using last submitted search value instead of the current one (ClearlyClaire)
- Fix misleading hashtag warning when posting with “Followers only” or “Mentioned people only” visibility (n0toose)
- Fix embedded posts with videos grabbing focus (Akkiesoft)
- Fix
$
not being escaped in.env.production
files generated by themastodon:setup
rake task (ClearlyClaire, ClearlyClaire) - Fix sanitizer parsing link text as HTML when stripping unsupported links (ClearlyClaire)
- Fix
scheduled_at
input not usingdatetime-local
when editing announcements (ClearlyClaire) - Fix REST API serializer for
Account
not includingmoved
when the moved account has itself moved (ClearlyClaire) - Fix
/api/v1/admin/trends/tags
using wrong serializer (ClearlyClaire) - Fix situations in which instance actor can be set to a Mastodon-incompatible name (ClearlyClaire)
Security
- Add
form-action
CSP directive (ClearlyClaire, ClearlyClaire, ClearlyClaire) - Fix unbounded recursion in account discovery (ClearlyClaire)
- Revoke all authorized applications on password reset (FrancisMurillo)
Upgrade notes
To get the code for v4.1.0rc1, use git fetch && git checkout v4.1.0rc1
.
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.1
- 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.
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