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: 重命名书签后属性面板中的书签属性没有更改 Fix https://github.com/siyuan-note/siyuan/issues/5207
Liang Dingfca47bae6c60
diff --git a/kernel/model/bookmark.go b/kernel/model/bookmark.goindex 012945a53e..5dd1ac861c 100644--- a/kernel/model/bookmark.go+++ b/kernel/model/bookmark.go@@ -22,6 +22,8 @@ import ("sort""strings"+ "github.com/88250/lute/parse"+ "github.com/siyuan-note/siyuan/kernel/cache""github.com/siyuan-note/siyuan/kernel/sql""github.com/siyuan-note/siyuan/kernel/treenode""github.com/siyuan-note/siyuan/kernel/util"@@ -56,6 +58,7 @@ func RemoveBookmark(bookmark string) (err error) {if bookmarkAttrVal := node.IALAttr("bookmark"); bookmarkAttrVal == bookmark {node.RemoveIALAttr("bookmark")+ cache.PutBlockIAL(node.ID, parse.IAL2Map(node.KramdownIAL))}}@@ -115,6 +118,7 @@ func RenameBookmark(oldBookmark, newBookmark string) (err error) {if bookmarkAttrVal := node.IALAttr("bookmark"); bookmarkAttrVal == oldBookmark {node.SetIALAttr("bookmark", newBookmark)+ cache.PutBlockIAL(node.ID, parse.IAL2Map(node.KramdownIAL))}}