mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 03:11:36 +01:00
Fix Setting.authorized_fetch
not being properly taken into consideration (#26958)
This commit is contained in:
parent
8b5c61ae3a
commit
392c07f2bf
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
module AuthorizedFetchHelper
|
module AuthorizedFetchHelper
|
||||||
def authorized_fetch_mode?
|
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
|
end
|
||||||
|
|
||||||
def authorized_fetch_overridden?
|
def authorized_fetch_overridden?
|
||||||
|
|
Loading…
Reference in a new issue