fix: username and community title validation
This commit is contained in:
parent
a4d7f44aa3
commit
efb259764e
7 changed files with 79 additions and 25 deletions
|
@ -108,7 +108,8 @@ pub async fn create_request(
|
|||
Err(e) => return Json(e.into()),
|
||||
};
|
||||
|
||||
if let Err(e) = save_webp_buffer(&upload.path(&data.0).to_string(), image.to_vec())
|
||||
if let Err(e) =
|
||||
save_webp_buffer(&upload.path(&data.0).to_string(), image.to_vec(), None)
|
||||
{
|
||||
return Json(Error::MiscError(e.to_string()).into());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue