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: Improve block ref searching https://github.com/siyuan-note/siyuan/issues/12010
Danielfc4f614e72fd
diff --git a/kernel/sql/block_ref_query.go b/kernel/sql/block_ref_query.goindex 8593d848a9..2dcdc2dfce 100644--- a/kernel/sql/block_ref_query.go+++ b/kernel/sql/block_ref_query.go@@ -363,7 +363,7 @@ func QueryRefIDsByDefID(defID string, containChildren bool) (refIDs, refTexts []func QueryRefsRecent(onlyDoc bool, typeFilter string, ignoreLines []string) (ret []*Ref) {stmt := "SELECT r.* FROM refs AS r, blocks AS b WHERE b.id = r.def_block_id AND b.type IN " + typeFilterif onlyDoc {- stmt = "SELECT r.* FROM refs AS r, blocks AS b WHERE b.type = 'd' AND b.id = r.def_block_id"+ stmt = "SELECT r.* FROM refs AS r, blocks AS b WHERE b.id = r.def_block_id AND b.type = 'd'"}if 0 < len(ignoreLines) {// Support ignore search results https://github.com/siyuan-note/siyuan/issues/10089