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:
@ -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)
|
||||
|
Reference in New Issue
Block a user