You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
373 B
11 lines
373 B
# frozen_string_literal: true |
|
|
|
module AuthorizedFetchHelper |
|
def authorized_fetch_mode? |
|
ENV.fetch('AUTHORIZED_FETCH') { Setting.authorized_fetch && 'true' } == 'true' || Rails.configuration.x.mastodon.limited_federation_mode |
|
end |
|
|
|
def authorized_fetch_overridden? |
|
ENV.key?('AUTHORIZED_FETCH') || Rails.configuration.x.mastodon.limited_federation_mode |
|
end |
|
end
|
|
|