fix blog without image
This commit is contained in:
@@ -85,7 +85,7 @@ pub async fn create_post(
|
||||
}
|
||||
|
||||
let images = extract_images(&payload.content);
|
||||
if images.is_empty() {
|
||||
if images.is_empty() && state.site_mode == crate::models::SiteMode::Atelier {
|
||||
return Err(AppError::BadRequest(
|
||||
"A gallery entry must include at least one image ( in the markdown body)."
|
||||
.to_string(),
|
||||
|
||||
Reference in New Issue
Block a user