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

Add post with PDF support

This commit is contained in:
2020-07-03 10:27:09 +02:00
parent 689cf07ee4
commit b858eac3c4
3 changed files with 6 additions and 5 deletions

View File

@ -61,7 +61,7 @@ impl PostAPI {
match &p.kind {
PostKind::POST_KIND_TEXT => { /* do nothing */ }
PostKind::POST_KIND_IMAGE(file) => {
PostKind::POST_KIND_IMAGE(file) | PostKind::POST_KIND_PDF(file) => {
post.file_size = Option::from(file.size);
post.file_type = file.file_type.clone();
post.file_path = Some(file.path.clone());
@ -75,7 +75,6 @@ impl PostAPI {
post.link_image = link.image.clone();
}
PostKind::POST_KIND_PDF => {}
PostKind::POST_KIND_MOVIE => {}
PostKind::POST_KIND_COUNTDOWN => {}
PostKind::POST_KIND_SURVEY => {}