feat: author support and UI support for multi-category

This commit is contained in:
2026-02-15 16:51:29 +01:00
parent 21ed992727
commit 14be7aa7af
12 changed files with 936 additions and 7 deletions

View File

@@ -884,7 +884,7 @@ const PostEditor: React.FC<PostEditorProps> = ({ postId }) => {
title,
content,
tags,
categories: category ? [category] : ['article'],
categories: selectedCategories.length > 0 ? selectedCategories : ['article'],
});
if (updated) {
@@ -903,7 +903,7 @@ const PostEditor: React.FC<PostEditorProps> = ({ postId }) => {
} finally {
setIsSaving(false);
}
}, [postId, title, content, tags, category, isDirty, isSaving, updatePost, markClean, showErrorModal]);
}, [postId, title, content, tags, selectedCategories, isDirty, isSaving, updatePost, markClean, showErrorModal]);
const handlePublish = async () => {
await handleSave();