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