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 npe https://github.com/siyuan-note/siyuan/issues/16808
Danielde6a32836206
diff --git a/kernel/api/search.go b/kernel/api/search.goindex 39786db3c9..767e816062 100644--- a/kernel/api/search.go+++ b/kernel/api/search.go@@ -297,6 +297,9 @@ func searchEmbedBlock(c *gin.Context) {excludeIDsArg := arg["excludeIDs"].([]interface{})var excludeIDs []stringfor _, excludeID := range excludeIDsArg {+ if nil == excludeID {+ continue+ }excludeIDs = append(excludeIDs, excludeID.(string))}headingMode := 0 // 0:显示标题与下方的块,1:仅显示标题,2:仅显示标题下方的块