mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-21 23:32:39 +00:00
Add Authorized Fetch
This commit is contained in:
parent
bdb8a5cab3
commit
ea2a9eb42a
4 changed files with 6 additions and 0 deletions
|
@ -531,6 +531,7 @@ trait AdminSettingsController
|
|||
'registration_status' => 'required|in:open,filtered,closed',
|
||||
'cloud_storage' => 'required',
|
||||
'activitypub_enabled' => 'required',
|
||||
'authorized_fetch' => 'required',
|
||||
'account_migration' => 'required',
|
||||
'mobile_apis' => 'required',
|
||||
'stories' => 'required',
|
||||
|
@ -555,6 +556,7 @@ trait AdminSettingsController
|
|||
}
|
||||
}
|
||||
}
|
||||
ConfigCacheService::put('federation.activitypub.authorized_fetch', $request->boolean('authorized_fetch'));
|
||||
ConfigCacheService::put('federation.activitypub.enabled', $request->boolean('activitypub_enabled'));
|
||||
ConfigCacheService::put('federation.migration', $request->boolean('account_migration'));
|
||||
ConfigCacheService::put('pixelfed.oauth_enabled', $request->boolean('mobile_apis'));
|
||||
|
|
|
@ -37,6 +37,7 @@ class AdminSettingsService
|
|||
'registration_status' => $regState,
|
||||
'cloud_storage' => $cloud_ready && $cloud_storage,
|
||||
'activitypub_enabled' => (bool) config_cache('federation.activitypub.enabled'),
|
||||
'authorized_fetch' => (bool) config_cache('federation.activitypub.authorized_fetch'),
|
||||
'account_migration' => (bool) config_cache('federation.migration'),
|
||||
'mobile_apis' => (bool) config_cache('pixelfed.oauth_enabled'),
|
||||
'stories' => (bool) config_cache('instance.stories.enabled'),
|
||||
|
|
|
@ -46,6 +46,7 @@ class ConfigCacheService
|
|||
'pixelfed.oauth_enabled',
|
||||
'pixelfed.import.instagram.enabled',
|
||||
'pixelfed.bouncer.enabled',
|
||||
'federation.activitypub.authorized_fetch',
|
||||
|
||||
'pixelfed.enforce_email_verification',
|
||||
'pixelfed.max_account_size',
|
||||
|
|
|
@ -30,6 +30,8 @@ return [
|
|||
'ingest' => [
|
||||
'store_notes_without_followers' => env('AP_INGEST_STORE_NOTES_WITHOUT_FOLLOWERS', false),
|
||||
],
|
||||
|
||||
'authorized_fetch' => env('AUTHORIZED_FETCH', false),
|
||||
],
|
||||
|
||||
'atom' => [
|
||||
|
|
Loading…
Reference in a new issue