|
|
|
@ -51,15 +51,13 @@ class FederationController extends Controller
|
|
|
|
public function remoteFollowStore(Request $request)
|
|
|
|
public function remoteFollowStore(Request $request)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
$this->authCheck();
|
|
|
|
$this->authCheck();
|
|
|
|
$this->validate($request, [
|
|
|
|
$this->validate($request, [
|
|
|
|
'url' => 'required|string',
|
|
|
|
'url' => 'required|string',
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
|
if (config('pixelfed.remote_follow_enabled') !== true) {
|
|
|
|
abort_if(!config('federation.activitypub.remoteFollow'), 403);
|
|
|
|
abort(403);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$follower = Auth::user()->profile;
|
|
|
|
$follower = Auth::user()->profile;
|
|
|
|
$url = $request->input('url');
|
|
|
|
$url = $request->input('url');
|
|
|
|
|