~cytrogen/masto-fe

392c07f2bf01743fdbf92abb555a4c558c7f4a31 — Claire 2 years ago 8b5c61a
Fix `Setting.authorized_fetch` not being properly taken into consideration (#26958)

1 files changed, 1 insertions(+), 1 deletions(-)

M app/helpers/authorized_fetch_helper.rb
M app/helpers/authorized_fetch_helper.rb => app/helpers/authorized_fetch_helper.rb +1 -1
@@ 2,7 2,7 @@

module AuthorizedFetchHelper
  def authorized_fetch_mode?
    ENV.fetch('AUTHORIZED_FETCH') { Setting.authorized_fetch } == 'true' || Rails.configuration.x.limited_federation_mode
    ENV.fetch('AUTHORIZED_FETCH') { Setting.authorized_fetch && 'true' } == 'true' || Rails.configuration.x.limited_federation_mode
  end

  def authorized_fetch_overridden?