mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 01:05:36 +00:00
Update FollowController, fix private account bug
This commit is contained in:
parent
a66835fbfd
commit
39394327f0
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue