fix blog without image
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user