1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-22 07:42:41 +00:00

Update ApiV1Controller

This commit is contained in:
Daniel Supernault 2023-05-02 20:11:26 -06:00
parent 39d39aa594
commit d563901622
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 3 additions and 1 deletions

View file

@ -3010,9 +3010,10 @@ class ApiV1Controller extends Controller
$status->caption = $content;
$status->rendered = $rendered;
$status->profile_id = $user->profile_id;
$status->scope = 'draft';
$status->is_nsfw = $cw;
$status->cw_summary = $spoilerText;
$status->scope = 'draft';
$status->visibility = 'draft';
if($request->has('place_id')) {
$status->place_id = $request->input('place_id');
}

View file

@ -561,6 +561,7 @@ class ComposeController extends Controller
$status->caption = strip_tags($request->caption);
$status->rendered = Autolink::create()->autolink($status->caption);
$status->scope = 'draft';
$status->visibility = 'draft';
$status->profile_id = $profile->id;
$status->save();