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: Stop repeated backlink refresh with global anchor sorting https://github.com/siyuan-note/siyuan/issues/19774
Daniel93185d9bc4d4
diff --git a/kernel/model/index.go b/kernel/model/index.goindex 9c87615ab6..1d8f2b1816 100644--- a/kernel/model/index.go+++ b/kernel/model/index.go@@ -449,13 +449,17 @@ func updateEmbedBlockContent(embedBlockID string, queryResultBlocks []*EmbedBlocreturn}- embedBlock.Content = "" // 嵌入块每查询一次多一个结果 https://github.com/siyuan-note/siyuan/issues/7196+ content := "" // 嵌入块每查询一次多一个结果 https://github.com/siyuan-note/siyuan/issues/7196for _, block := range queryResultBlocks {- embedBlock.Content += block.Block.Markdown+ content += block.Block.Markdown}- if "" == embedBlock.Content {- embedBlock.Content = "no query result"+ if "" == content {+ content = "no query result"}+ if embedBlock.Content == content {+ return+ }+ embedBlock.Content = contentsql.UpdateBlockContentQueue(embedBlock)}