From 886ea6175de98f4d9756f3299e66e71c3d46e7c3 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 19 Mar 2021 21:22:37 -0600 Subject: [PATCH] Update ApiV1Controller, add missing variable --- app/Http/Controllers/Api/ApiV1Controller.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index 7cda7bee..82157fd0 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -1762,6 +1762,7 @@ class ApiV1Controller extends Controller $ids = $request->input('media_ids'); $in_reply_to_id = $request->input('in_reply_to_id'); $user = $request->user(); + $profile = $user->profile; $limitKey = 'compose:rate-limit:store:' . $user->id; $limitTtl = now()->addMinutes(15);