Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Fix set pandoc bin path

Danielca0111246224
diff --git a/kernel/api/setting.go b/kernel/api/setting.go
index bd45d7badf..ca90cb01cc 100644
--- a/kernel/api/setting.go
+++ b/kernel/api/setting.go
@@ -254,6 +254,8 @@ func setExport(c *gin.Context) {
if !util.IsValidPandocBin(export.PandocBin) {
util.PushErrMsg(fmt.Sprintf(model.Conf.Language(117), export.PandocBin), 5000)
export.PandocBin = util.PandocBinPath
+ } else {
+ util.PandocBinPath = export.PandocBin
}
}