mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update config var
This commit is contained in:
parent
29022c6a79
commit
9879d3c942
2 changed files with 3 additions and 5 deletions
|
@ -40,7 +40,7 @@ class ApiController extends BaseApiController
|
|||
|
||||
'activitypub' => [
|
||||
'enabled' => config('federation.activitypub.enabled'),
|
||||
'remote_follow' => config('pixelfed.remote_follow_enabled')
|
||||
'remote_follow' => config('federation.activitypub.remoteFollow')
|
||||
],
|
||||
|
||||
'ab' => [
|
||||
|
|
|
@ -57,9 +57,7 @@ class FederationController extends Controller
|
|||
'url' => 'required|string',
|
||||
]);
|
||||
|
||||
if (config('pixelfed.remote_follow_enabled') !== true) {
|
||||
abort(403);
|
||||
}
|
||||
abort_if(!config('federation.activitypub.remoteFollow'), 403);
|
||||
|
||||
$follower = Auth::user()->profile;
|
||||
$url = $request->input('url');
|
||||
|
|
Loading…
Reference in a new issue