Skip to content

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

:art: Blocks in the bookmark panel display their name instead of content Fix https://github.com/siyuan-note/siyuan/issues/8514

Daniel01f93d16877c
diff --git a/kernel/model/bookmark.go b/kernel/model/bookmark.go
index bc4601db50..29394b4228 100644
--- a/kernel/model/bookmark.go
+++ b/kernel/model/bookmark.go
@@ -166,6 +166,12 @@ func BuildBookmark() (ret *Bookmarks) {
blocks := fromSQLBlocks(&sqlBlocks, "", 0)
for _, block := range blocks {
label := BookmarkLabel(block.IAL["bookmark"])
+
+ if "" != block.Name {
+ // Blocks in the bookmark panel display their name instead of content https://github.com/siyuan-note/siyuan/issues/8514
+ block.Content = block.Name
+ }
+
if bs, ok := labelBlocks[label]; ok {
bs = append(bs, block)
labelBlocks[label] = bs