Skip to content

Commit

Permalink
Fix Setting.authorized_fetch not being properly taken into consider…
Browse files Browse the repository at this point in the history
…ation (mastodon#26958)
  • Loading branch information
ClearlyClaire authored and renchap committed Sep 22, 2023
1 parent d501d15 commit 129dd96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/authorized_fetch_helper.rb
Expand Up @@ -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?
Expand Down

0 comments on commit 129dd96

Please sign in to comment.