Make MASTODON_USE_LIBVIPS default to true

This commit is contained in:
Jeremy Kescher 2024-06-18 01:13:30 +02:00
parent e53b002379
commit 3fa67cbe7a
No known key found for this signature in database
GPG key ID: 80A419A7A613DFA4

View file

@ -102,7 +102,7 @@ module Mastodon
config.before_configuration do
require 'mastodon/redis_config'
config.x.use_vips = ENV['MASTODON_USE_LIBVIPS'] == 'true'
config.x.use_vips = ENV.fetch('MASTODON_USE_LIBVIPS', 'true') == 'true'
if config.x.use_vips
require_relative '../lib/paperclip/vips_lazy_thumbnail'