forked from mirror/pixelfed
Update PublicApiController, return empty 403 response
This commit is contained in:
parent
6ba7d43391
commit
d9e4cc3df6
1 changed files with 6 additions and 3 deletions
|
@ -422,8 +422,8 @@ class PublicApiController extends Controller
|
|||
|
||||
public function homeTimelineApi(Request $request)
|
||||
{
|
||||
if(!Auth::check()) {
|
||||
return abort(403);
|
||||
if(!$request->user()) {
|
||||
return response('', 403);
|
||||
}
|
||||
|
||||
$this->validate($request,[
|
||||
|
@ -586,7 +586,10 @@ class PublicApiController extends Controller
|
|||
|
||||
public function networkTimelineApi(Request $request)
|
||||
{
|
||||
abort_if(!Auth::check(), 403);
|
||||
if(!$request->user()) {
|
||||
return response('', 403);
|
||||
}
|
||||
|
||||
abort_if(config('federation.network_timeline') == false, 404);
|
||||
|
||||
$this->validate($request,[
|
||||
|
|
Loading…
Reference in a new issue