1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 21:39:21 +00:00

Fix bad check

This commit is contained in:
Pierre HUBERT 2020-07-10 08:25:11 +02:00
parent c90f74e782
commit 4ed101b0dc

View File

@ -22,7 +22,7 @@ pub fn create(r: &mut HttpRequestHandler) -> RequestResult {
let (content, image) = if r.has_file("image") {
(
remove_html_nodes(&r.post_string("content")?),
remove_html_nodes(&r.post_string_opt("content", 0, false)?),
Some(r.save_post_image("image", PATH_COMMENTS_IMAGES, 700, 700)?)
)
} else {