mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 08:44:49 +00:00
Merge pull request #1093 from pixelfed/frontend-ui-refactor
Update FederationController
This commit is contained in:
commit
ac53aea288
1 changed files with 2 additions and 3 deletions
|
@ -66,7 +66,7 @@ class FederationController extends Controller
|
||||||
|
|
||||||
RemoteFollowPipeline::dispatch($follower, $url);
|
RemoteFollowPipeline::dispatch($follower, $url);
|
||||||
|
|
||||||
return redirect()->back();
|
return response(['success' => true, 'follower' => $follower]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function nodeinfoWellKnown()
|
public function nodeinfoWellKnown()
|
||||||
|
@ -124,7 +124,6 @@ class FederationController extends Controller
|
||||||
],
|
],
|
||||||
'captcha' => (bool) config('pixelfed.recaptcha'),
|
'captcha' => (bool) config('pixelfed.recaptcha'),
|
||||||
],
|
],
|
||||||
'openRegistrations' => config('pixelfed.open_registration'),
|
|
||||||
'protocols' => [
|
'protocols' => [
|
||||||
'activitypub',
|
'activitypub',
|
||||||
],
|
],
|
||||||
|
@ -148,7 +147,7 @@ class FederationController extends Controller
|
||||||
'version' => '2.0',
|
'version' => '2.0',
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
$res['openRegistrations'] = config('pixelfed.open_registration');
|
||||||
return response()->json($res, 200, [
|
return response()->json($res, 200, [
|
||||||
'Access-Control-Allow-Origin' => '*'
|
'Access-Control-Allow-Origin' => '*'
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue