mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Fix api endpoints
This commit is contained in:
parent
e354750808
commit
fd7f5dbba1
1 changed files with 2 additions and 4 deletions
|
@ -3691,8 +3691,7 @@ class ApiV1Controller extends Controller
|
|||
*/
|
||||
public function statusReplies(Request $request, $id)
|
||||
{
|
||||
abort_if(!$request->user() || !$request->user()->token(), 403);
|
||||
abort_unless($request->user()->tokenCan('read'), 403);
|
||||
abort_if(!$request->user(), 403);
|
||||
|
||||
$this->validate($request, [
|
||||
'limit' => 'int|min:1|max:10',
|
||||
|
@ -3788,8 +3787,7 @@ class ApiV1Controller extends Controller
|
|||
*/
|
||||
public function statusState(Request $request, $id)
|
||||
{
|
||||
abort_if(!$request->user() || !$request->user()->token(), 403);
|
||||
abort_unless($request->user()->tokenCan('read'), 403);
|
||||
abort_if(!$request->user(), 403);
|
||||
|
||||
$status = Status::findOrFail($id);
|
||||
$pid = $request->user()->profile_id;
|
||||
|
|
Loading…
Reference in a new issue