1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 16:35:17 +00:00

Add YouTube posts support

This commit is contained in:
2020-07-04 17:06:06 +02:00
parent 8d5013b00a
commit 532bd9e48d
3 changed files with 9 additions and 4 deletions

View File

@ -109,7 +109,10 @@ impl PostAPI {
PostKind::POST_KIND_SURVEY =>
post.data_survey = Some(SurveyAPI::new(&survey_helper::get_info(p.id)?, user.clone())?),
PostKind::POST_KIND_YOUTUBE => {}
PostKind::POST_KIND_YOUTUBE(id) => {
post.file_path = Some(id.clone());
post.file_type = Some("youtube".to_string());
}
}
Ok(post)