Update FollowController, fix private account bug

pull/1699/head
Daniel Supernault 6 years ago
parent a66835fbfd
commit 39394327f0
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -27,7 +27,11 @@ class FollowerController extends Controller
]);
$item = (int) $request->input('item');
$this->handleFollowRequest($item);
return response()->json(200);
if($request->wantsJson()) {
return response()->json(200);
} else {
return redirect()->back();
}
}
protected function handleFollowRequest($item)

Loading…
Cancel
Save