mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 00:05:29 +00:00
Update ApiV1Controller
This commit is contained in:
parent
39d39aa594
commit
d563901622
2 changed files with 3 additions and 1 deletions
|
@ -3010,9 +3010,10 @@ class ApiV1Controller extends Controller
|
||||||
$status->caption = $content;
|
$status->caption = $content;
|
||||||
$status->rendered = $rendered;
|
$status->rendered = $rendered;
|
||||||
$status->profile_id = $user->profile_id;
|
$status->profile_id = $user->profile_id;
|
||||||
$status->scope = 'draft';
|
|
||||||
$status->is_nsfw = $cw;
|
$status->is_nsfw = $cw;
|
||||||
$status->cw_summary = $spoilerText;
|
$status->cw_summary = $spoilerText;
|
||||||
|
$status->scope = 'draft';
|
||||||
|
$status->visibility = 'draft';
|
||||||
if($request->has('place_id')) {
|
if($request->has('place_id')) {
|
||||||
$status->place_id = $request->input('place_id');
|
$status->place_id = $request->input('place_id');
|
||||||
}
|
}
|
||||||
|
|
|
@ -561,6 +561,7 @@ class ComposeController extends Controller
|
||||||
$status->caption = strip_tags($request->caption);
|
$status->caption = strip_tags($request->caption);
|
||||||
$status->rendered = Autolink::create()->autolink($status->caption);
|
$status->rendered = Autolink::create()->autolink($status->caption);
|
||||||
$status->scope = 'draft';
|
$status->scope = 'draft';
|
||||||
|
$status->visibility = 'draft';
|
||||||
$status->profile_id = $profile->id;
|
$status->profile_id = $profile->id;
|
||||||
$status->save();
|
$status->save();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue