mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-07-07 18:42:53 +00:00
Implemented Movie object
This commit is contained in:
RestControllers
classes/components
@ -528,6 +528,10 @@ class postsController {
|
||||
//Update visibility level
|
||||
$infos['visibility_level'] = $this::VISIBILITY_LEVELS_API[$infos['visibility_level']];
|
||||
|
||||
//Turn movie into API entry (if any)
|
||||
if($infos["video_infos"] != null)
|
||||
$infos["video_infos"] = MoviesController::MovieToAPI($infos["video_infos"]);
|
||||
|
||||
//Turn survey into API entry (if any)
|
||||
if($infos["data_survey"] != null)
|
||||
$infos["data_survey"] = SurveysController::SurveyToAPI($infos["data_survey"]);
|
||||
|
Reference in New Issue
Block a user