1
0
Fork 0
forked from mirror/pixelfed

Update FollowerController

This commit is contained in:
Daniel Supernault 2019-08-22 21:22:00 -06:00
parent c539e8f607
commit d9db1cf8b1
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -23,16 +23,11 @@ class FollowerController extends Controller
public function store(Request $request)
{
$this->validate($request, [
'item' => 'required|integer',
'item' => 'required|string',
]);
$item = $request->input('item');
$item = (int) $request->input('item');
$this->handleFollowRequest($item);
if($request->wantsJson()) {
return response()->json([
200
], 200);
}
return redirect()->back();
return response()->json(200);
}
protected function handleFollowRequest($item)