Skip to content

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

:bug: Overlay block ref on PDF annotation ref lead to failure to query unreferenced assets https://github.com/siyuan-note/siyuan/issues/8186

Liang Ding9f6983cd092b
diff --git a/kernel/model/assets.go b/kernel/model/assets.go
index 7aef777a0d..afb13ef36e 100644
--- a/kernel/model/assets.go
+++ b/kernel/model/assets.go
@@ -730,7 +730,7 @@ func assetsLinkDestsInTree(tree *parse.Tree) (ret []string) {
}
if !strings.Contains(n.TextMarkFileAnnotationRefID, "/") {
- return ast.WalkSkipChildren
+ return ast.WalkContinue
}
dest := n.TextMarkFileAnnotationRefID[:strings.LastIndexByte(n.TextMarkFileAnnotationRefID, '/')]