diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index 156c44a6b..0de794a4c 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -3006,6 +3006,8 @@ class ApiV1Controller extends Controller 'scope' => 'nullable|in:inbox,sent,requests', ]); + return []; + $limit = $request->input('limit', 20); $scope = $request->input('scope', 'inbox'); $user = $request->user(); diff --git a/app/Http/Controllers/DirectMessageController.php b/app/Http/Controllers/DirectMessageController.php index b2e0df3a2..b29680058 100644 --- a/app/Http/Controllers/DirectMessageController.php +++ b/app/Http/Controllers/DirectMessageController.php @@ -30,6 +30,7 @@ class DirectMessageController extends Controller { public function __construct() { + abort(404); $this->middleware('auth'); }