Mastodon v4.3.0 and Jortage: Fix images not showing up

If you use Jortage and you upgraded to Mastodon v4.3.0, your multimedia could stop working, because of this commit: https://github.com/mastodon/mastodon/commit/a496aeabcb28b7cc7d8a9e69bf47543c2be038c2

The redirection from pool-api.jortage.com to blob.jortage.com messes things up.

So, if you need a solution (at least for now):

  1. Replace the file app/lib/content_security_policy.rb with Glitchsoc’s version (if you do this in the future, remember to match it with your Mastodon version).
  2. Add this line to your .env.production :
EXTRA_DATA_HOSTS=https://blob.jortage.com
  1. Restart all Mastodon processes.

It should start working now. Cheers!