An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: 分享文档到链滴 https://github.com/siyuan-note/siyuan/issues/2004
Liang Ding8707f07d8a8e
diff --git a/kernel/model/export.go b/kernel/model/export.goindex e64918f2ea..c5f204a91e 100644--- a/kernel/model/export.go+++ b/kernel/model/export.go@@ -100,9 +100,9 @@ func Export2Liandi(id string) (err error) {SetResult(result).SetCookies(&http.Cookie{Name: "symphony", Value: Conf.User.UserToken}).SetBody(map[string]interface{}{- "title": title,- "tags": tags,- "content": content})+ "articleTitle": title,+ "articleTags": tags,+ "articleContent": content})var resp *req.Responsevar sendErr errorif foundArticle {@@ -120,6 +120,12 @@ func Export2Liandi(id string) (err error) {return errors.New(msg)}+ if 0 != result.Code {+ msg := fmt.Sprintf("send article to liandi failed [code=%d, msg=%s]", result.Code, result.Msg)+ logging.LogErrorf(msg)+ return errors.New(msg)+ }+if !foundArticle {articleId = result.Data.(string)tree.Root.SetIALAttr("liandiArticleId", articleId)