1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 01:05:36 +00:00

Update ApiV1Controller, add missing variable

This commit is contained in:
Daniel Supernault 2021-03-19 21:22:37 -06:00
parent 42faa9ff7e
commit 886ea6175d
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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);