From fa4474bc38d64b1d96272f9d45e90289020fcb11 Mon Sep 17 00:00:00 2001 From: daniel Date: Sat, 25 Jan 2025 08:45:42 -0700 Subject: [PATCH] Staging (#5594) * add kickstarter and monthly users badge (#5589) Co-authored-by: daniel * DM --------- Co-authored-by: Simon Laux --- app/Http/Controllers/Api/ApiV1Controller.php | 2 ++ app/Http/Controllers/DirectMessageController.php | 1 + 2 files changed, 3 insertions(+) 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'); }