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