An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: The insertion position is wrong after converting the list to paragraph block in the floating window https://github.com/siyuan-note/siyuan/issues/15396
Daniel561d4cc891f0
diff --git a/kernel/api/block.go b/kernel/api/block.goindex 310f9b72d5..55d3132a10 100644--- a/kernel/api/block.go+++ b/kernel/api/block.go@@ -86,7 +86,7 @@ func getBlockSiblingID(c *gin.Context) {}}-func getBlockIDs(c *gin.Context) {+func getBlockRelevantIDs(c *gin.Context) {ret := gulu.Ret.NewResult()defer c.JSON(http.StatusOK, ret)@@ -96,7 +96,7 @@ func getBlockIDs(c *gin.Context) {}id := arg["id"].(string)- parentID, previousID, nextID, err := model.GetBlockIDs(id)+ parentID, previousID, nextID, err := model.GetBlockRelevantIDs(id)if nil != err {ret.Code = -1ret.Msg = err.Error()diff --git a/kernel/api/router.go b/kernel/api/router.goindex 43a8f03cf4..e3d3deaec3 100644--- a/kernel/api/router.go+++ b/kernel/api/router.go@@ -217,7 +217,7 @@ func ServeAPI(ginServer *gin.Engine) {ginServer.Handle("POST", "/api/block/swapBlockRef", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, swapBlockRef)ginServer.Handle("POST", "/api/block/transferBlockRef", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, transferBlockRef)ginServer.Handle("POST", "/api/block/getBlockSiblingID", model.CheckAuth, getBlockSiblingID)- ginServer.Handle("POST", "/api/block/getBlockIDs", model.CheckAuth, getBlockIDs)+ ginServer.Handle("POST", "/api/block/getBlockRelevantIDs", model.CheckAuth, getBlockRelevantIDs)ginServer.Handle("POST", "/api/block/getBlockTreeInfos", model.CheckAuth, getBlockTreeInfos)ginServer.Handle("POST", "/api/block/checkBlockRef", model.CheckAuth, checkBlockRef)diff --git a/kernel/model/block.go b/kernel/model/block.goindex 723d75aecb..e134b1a6b8 100644--- a/kernel/model/block.go+++ b/kernel/model/block.go@@ -280,7 +280,7 @@ func GetBlockSiblingID(id string) (parent, previous, next string) {return}-func GetBlockIDs(id string) (parentID, previousID, nextID string, err error) {+func GetBlockRelevantIDs(id string) (parentID, previousID, nextID string, err error) {tree, err := LoadTreeByBlockID(id)if err != nil {return