|
@@ -3494,7 +3494,8 @@ class ApiV1Controller extends Controller
|
|
|
return [];
|
|
|
}
|
|
|
|
|
|
- $content = $request->filled('status') ? strip_tags($request->input('status')) : null;
|
|
|
+ $defaultCaption = config_cache('database.default') === 'mysql' ? null : "";
|
|
|
+ $content = $request->filled('status') ? strip_tags($request->input('status')) : $defaultCaption;
|
|
|
$cw = $user->profile->cw == true ? true : $request->boolean('sensitive', false);
|
|
|
$spoilerText = $cw && $request->filled('spoiler_text') ? $request->input('spoiler_text') : null;
|
|
|
|
|
@@ -3508,6 +3509,7 @@ class ApiV1Controller extends Controller
|
|
|
|
|
|
$status = new Status;
|
|
|
$status->caption = $content;
|
|
|
+ $status->rendered = $defaultCaption;
|
|
|
$status->scope = $visibility;
|
|
|
$status->visibility = $visibility;
|
|
|
$status->profile_id = $user->profile_id;
|
|
@@ -3532,6 +3534,7 @@ class ApiV1Controller extends Controller
|
|
|
if (! $in_reply_to_id) {
|
|
|
$status = new Status;
|
|
|
$status->caption = $content;
|
|
|
+ $status->rendered = $defaultCaption;
|
|
|
$status->profile_id = $user->profile_id;
|
|
|
$status->is_nsfw = $cw;
|
|
|
$status->cw_summary = $spoilerText;
|
|
@@ -3684,7 +3687,10 @@ class ApiV1Controller extends Controller
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ $defaultCaption = config_cache('database.default') === 'mysql' ? null : "";
|
|
|
$share = Status::firstOrCreate([
|
|
|
+ 'caption' => $defaultCaption,
|
|
|
+ 'rendered' => $defaultCaption,
|
|
|
'profile_id' => $user->profile_id,
|
|
|
'reblog_of_id' => $status->id,
|
|
|
'type' => 'share',
|