We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1053736 commit 898422aCopy full SHA for 898422a
src/commands/posts-list/save-post.ts
@@ -115,9 +115,9 @@ export const saveLocalDraftToCnblogs = async (localDraft: LocalDraft) => {
115
AlertService.warning('本地文件已删除, 无法新建博文')
116
return false
117
}
118
- if (Settings.automaticallyExtractImagesType) {
+ if (Settings.automaticallyExtractImagesType)
119
await extractImages(localDraft.filePathUri, Settings.automaticallyExtractImagesType).catch(console.warn)
120
- }
+
121
postToSave.postBody = await localDraft.readAllText()
122
return true
123
},
0 commit comments