Update FollowController, fix private account bug

This commit is contained in:
Daniel Supernault 2019-09-10 23:33:51 -06:00
parent a66835fbfd
commit 39394327f0
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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)