mirror of https://github.com/pixelfed/pixelfed.git
Update ApiV1Controller, properly cast boolean sensitive parameter. Fixes #4888
This commit is contained in:
parent
8a9a7c0e47
commit
0aff126aa0
|
@ -3031,7 +3031,7 @@ class ApiV1Controller extends Controller
|
|||
|
||||
$content = strip_tags($request->input('status'));
|
||||
$rendered = Autolink::create()->autolink($content);
|
||||
$cw = $user->profile->cw == true ? true : $request->input('sensitive', false);
|
||||
$cw = $user->profile->cw == true ? true : $request->boolean('sensitive', false);
|
||||
$spoilerText = $cw && $request->filled('spoiler_text') ? $request->input('spoiler_text') : null;
|
||||
|
||||
if($in_reply_to_id) {
|
||||
|
|
Loading…
Reference in New Issue