mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +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);
|
||||
if($request->wantsJson()) {
|
||||
return response()->json(200);
|
||||
} else {
|
||||
return redirect()->back();
|
||||
}
|
||||
}
|
||||
|
||||
protected function handleFollowRequest($item)
|
||||
|
|
Loading…
Reference in a new issue