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
@@ -51,7 +51,7 @@ export function usePostMeta({ editSlug, getContent, setContent, mode = 'atelier'
notify('Title, slug, and body are required.', 'error');
return;
}
if (!/!\[[^\]]*\]\([^)]+\)/.test(content)) {
if (mode === 'atelier' && !/!\[[^\]]*\]\([^)]+\)/.test(content)) {
notify(
'Add at least one image before saving — drag, paste, or use the Add image button.',
'error',