~cytrogen/masto-fe

ref: 200312e8bed0d91c576cabcdf2ffe0173778cccd masto-fe/config/initializers/2_limited_federation_mode.rb -rw-r--r-- 372 bytes
200312e8 — Rob Thomas Fix crash when viewing a moderation appeal and the moderator account has been deleted (#25900) 2 years ago
                                                                                
1
2
3
4
5
6
7
# frozen_string_literal: true

Rails.application.configure do
  config.x.limited_federation_mode = (ENV['LIMITED_FEDERATION_MODE'] || ENV['WHITELIST_MODE']) == 'true'

  warn 'WARN: The environment variable WHITELIST_MODE has been replaced with LIMITED_FEDERATION_MODE, you should rename this environment variable in your configuration.' if ENV.key?('WHITELIST_MODE')
end