mirror of
https://github.com/mastodon/mastodon.git
synced 2025-07-12 15:33:14 +00:00
Compare commits
2 Commits
da29c1cfb0
...
229b624ea3
Author | SHA1 | Date | |
---|---|---|---|
![]() |
229b624ea3 | ||
![]() |
9f1d021230 |
|
@ -57,7 +57,7 @@ class ActivityPub::InboxesController < ActivityPub::BaseController
|
|||
|
||||
def process_collection_synchronization
|
||||
raw_params = request.headers['Collection-Synchronization']
|
||||
return if raw_params.blank? || ENV['DISABLE_FOLLOWERS_SYNCHRONIZATION'] == 'true' || signed_request_account.nil?
|
||||
return if raw_params.blank? || Rails.configuration.x.mastodon.disable_followers_synchronization || signed_request_account.nil?
|
||||
|
||||
# Re-using the syntax for signature parameters
|
||||
params = SignatureParser.parse(raw_params)
|
||||
|
|
|
@ -50,7 +50,7 @@ class ActivityPub::DeliveryWorker
|
|||
Request.new(:post, @inbox_url, body: @json, http_client: http_client).tap do |request|
|
||||
request.on_behalf_of(@source_account, sign_with: @options[:sign_with])
|
||||
request.add_headers(HEADERS)
|
||||
request.add_headers({ 'Collection-Synchronization' => synchronization_header }) if ENV['DISABLE_FOLLOWERS_SYNCHRONIZATION'] != 'true' && @options[:synchronize_followers]
|
||||
request.add_headers({ 'Collection-Synchronization' => synchronization_header }) if !Rails.configuration.x.mastodon.disable_followers_synchronization && @options[:synchronize_followers]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
shared:
|
||||
disable_followers_synchronization: <%= ENV.fetch('DISABLE_FOLLOWERS_SYNCHRONIZATION', nil) == 'true' %>
|
||||
experimental_features: <%= ENV.fetch('EXPERIMENTAL_FEATURES', nil) %>
|
||||
limited_federation_mode: <%= (ENV.fetch('LIMITED_FEDERATION_MODE', nil) || ENV.fetch('WHITELIST_MODE', nil)) == 'true' %>
|
||||
self_destruct_value: <%= ENV.fetch('SELF_DESTRUCT', nil)&.to_json %>
|
||||
|
|
Loading…
Reference in New Issue
Block a user