This is a security release and a patch release that keeps us up to date with Mastodon v4.2.17. There are also a few minor fixes to Hometown features that come along with this.
Changelog
Hometown changes include:
- Macaron theme fixes thanks to @rainbow-bamboo (#1306)
- Fairy Floss theme fixes thanks to @rrrnld and @arne (#1351)
- Italian translation fix thanks to @plknkl and @ClearlyClaire (#1365)
- Removing the Mastodon version from the web frontend (d8fb11b)
- Removing the "Post published" popup from the web frontend (b2360be)
- Removing the "new Mastodon version" checker thanks to @mistydemeo (#1368)
There are also numerous small Mastodon bugfixes reflected in the upgrade from v4.2.10 to v4.2.17. You can read changelogs for individual versions, but some important changes to note include:
- A security patch for SAML you can read about in the v4.2.17 release notes
- Adding support for the
<s>
strikethrough tag on incoming posts
Dependencies
The minimum supported Ruby version has been bumped from 3.0 to 3.1. Otherwise, external dependencies have not changed since v4.2.4, the compatible PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:
- Ruby: 3.1 to 3.2
- PostgreSQL: 10 or newer
- Elasticsearch (for full-text search): 7.x (OpenSearch should also work)
- Redis: 4 or newer
- Node: 16 or newer
- ImageMagick: 6.9.7-7 or newer
Update steps
These are instructions for upgrading from Hometown v4.2.10+hometown-1.1.1
.
As always, make sure you have backups of the database before performing any upgrades. A postgres backup command would look something like this:
pg_dump -Fc -U postgres mastodon_production > name_of_the_backup.dump
Tip
The charlock_holmes
gem may fail to build on some systems with recent versions of gcc
.
If you run into such an issue, try BUNDLE_BUILD__CHARLOCK_HOLMES="--with-cxxflags=-std=c++17" bundle install
.
Important
If you are running Ubuntu 18, you will probably run into issues with glibc. I strongly recommend updating to at least Ubuntu 20 before updating Hometown. Or if you really want to stick with Ubuntu 18, you can try these suggestions but I was not able to get it to work.
git remote update && git checkout v4.2.17+hometown-1.1.2
- Install dependencies:
bundle install
andyarn install --frozen-lockfile
- Precompile the assets:
RAILS_ENV=production bundle exec rails assets:precompile
- Restart all Mastodon processes