Browse Source

Fix `Setting.authorized_fetch` not being properly taken into consideration (#26958)

lets-bump-hometown-to-mastodon-4.2
Claire 3 years ago committed by GitHub
parent
commit
392c07f2bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/helpers/authorized_fetch_helper.rb

2
app/helpers/authorized_fetch_helper.rb

@ -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?

Loading…
Cancel
Save