forked from mirror/pixelfed
Update InternalApiController, add places
This commit is contained in:
parent
cb8d7e3b9a
commit
820233adb1
1 changed files with 5 additions and 1 deletions
|
@ -239,7 +239,8 @@ class InternalApiController extends Controller
|
||||||
'media.*.filter_class' => 'nullable|alpha_dash|max:30',
|
'media.*.filter_class' => 'nullable|alpha_dash|max:30',
|
||||||
'media.*.license' => 'nullable|string|max:80',
|
'media.*.license' => 'nullable|string|max:80',
|
||||||
'cw' => 'nullable|boolean',
|
'cw' => 'nullable|boolean',
|
||||||
'visibility' => 'required|string|in:public,private,unlisted|min:2|max:10'
|
'visibility' => 'required|string|in:public,private,unlisted|min:2|max:10',
|
||||||
|
'place' => 'nullable'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if(config('costar.enabled') == true) {
|
if(config('costar.enabled') == true) {
|
||||||
|
@ -283,6 +284,9 @@ class InternalApiController extends Controller
|
||||||
array_push($mimes, $m->mime);
|
array_push($mimes, $m->mime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($request->filled('place')) {
|
||||||
|
$status->place_id = $request->input('place')['id'];
|
||||||
|
}
|
||||||
$status->caption = strip_tags($request->caption);
|
$status->caption = strip_tags($request->caption);
|
||||||
$status->scope = 'draft';
|
$status->scope = 'draft';
|
||||||
$status->profile_id = $profile->id;
|
$status->profile_id = $profile->id;
|
||||||
|
|
Loading…
Reference in a new issue