mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-23 05:49:22 +00:00
Fix bad check
This commit is contained in:
parent
c90f74e782
commit
4ed101b0dc
@ -22,7 +22,7 @@ pub fn create(r: &mut HttpRequestHandler) -> RequestResult {
|
|||||||
|
|
||||||
let (content, image) = if r.has_file("image") {
|
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)?)
|
Some(r.save_post_image("image", PATH_COMMENTS_IMAGES, 700, 700)?)
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user