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
1 changed files with 5 additions and 1 deletions

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)