fix blog without image
CI / frontend (push) Failing after 1s
CI / backend (push) Failing after 1s

This commit is contained in:
2026-05-21 04:09:02 +02:00
parent 4fae8b5e47
commit 37f88f5ad1
5 changed files with 37 additions and 4 deletions
+1 -1
View File
@@ -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 (![](url) in the markdown body)."
.to_string(),