Update ApiV1Controller.php

pull/6985/head
Shlee 3 weeks ago committed by GitHub
parent 45e4de3928
commit 7c3644c3e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -3870,6 +3870,9 @@ class ApiV1Controller extends Controller
$cw = $user->profile->cw == true ? true : $request->boolean('sensitive', false);
$spoilerText = $cw && $request->filled('spoiler_text') ? $request->input('spoiler_text') : null;
$status = null;
$parent = null;
if ($in_reply_to_id) {
$parent = Status::findOrFail($in_reply_to_id);

Loading…
Cancel
Save