mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Updaet PublicApiController, disable legacy public access to local timeline
This commit is contained in:
parent
e7783af686
commit
6ba7d43391
1 changed files with 2 additions and 2 deletions
|
@ -293,8 +293,8 @@ class PublicApiController extends Controller
|
|||
'limit' => 'nullable|integer|max:30'
|
||||
]);
|
||||
|
||||
if(config('instance.timeline.local.is_public') == false && !Auth::check()) {
|
||||
abort(403, 'Authentication required.');
|
||||
if(!$request->user()) {
|
||||
return response('', 403);
|
||||
}
|
||||
|
||||
$page = $request->input('page');
|
||||
|
|
Loading…
Reference in a new issue