An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Supports local shorthands on Android https://github.com/siyuan-note/siyuan/issues/14414
Daniel038d05d0f4b0
diff --git a/kernel/api/filetree.go b/kernel/api/filetree.goindex f0b8672278..19050df879 100644--- a/kernel/api/filetree.go+++ b/kernel/api/filetree.go@@ -80,6 +80,12 @@ func moveLocalShorthands(c *gin.Context) {ret.Msg = err.Error()return}+ if "" == id {+ ret.Code = 1+ ret.Msg = "No local shorthands need to move"+ return+ }+ret.Data = idmodel.FlushTxQueue()diff --git a/kernel/api/router.go b/kernel/api/router.goindex f4788bf91c..8c43706ee0 100644--- a/kernel/api/router.go+++ b/kernel/api/router.go@@ -126,6 +126,7 @@ func ServeAPI(ginServer *gin.Engine) {ginServer.Handle("POST", "/api/filetree/upsertIndexes", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, upsertIndexes)ginServer.Handle("POST", "/api/filetree/removeIndexes", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeIndexes)ginServer.Handle("POST", "/api/filetree/listDocTree", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, listDocTree)+ ginServer.Handle("POST", "/api/filetree/moveLocalShorthands", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, moveLocalShorthands)ginServer.Handle("POST", "/api/format/autoSpace", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, autoSpace)ginServer.Handle("POST", "/api/format/netImg2LocalAssets", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, netImg2LocalAssets)