1
0
Fork 0
forked from mirror/pixelfed

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'); $ids = $request->input('media_ids');
$in_reply_to_id = $request->input('in_reply_to_id'); $in_reply_to_id = $request->input('in_reply_to_id');
$user = $request->user(); $user = $request->user();
$profile = $user->profile;
$limitKey = 'compose:rate-limit:store:' . $user->id; $limitKey = 'compose:rate-limit:store:' . $user->id;
$limitTtl = now()->addMinutes(15); $limitTtl = now()->addMinutes(15);