Skip to content

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

:bug: 标题块下方块反向链接计算问题 https://github.com/siyuan-note/siyuan/issues/5822

Liang Ding3473496a4397
diff --git a/kernel/model/backlink.go b/kernel/model/backlink.go
index 564c056bd9..259cc9497f 100644
--- a/kernel/model/backlink.go
+++ b/kernel/model/backlink.go
@@ -238,7 +238,7 @@ func BuildTreeBacklink(id, keyword, mentionKeyword string, beforeLen int) (boxID
}
paragraphParents := sql.GetBlocks(paragraphParentIDs)
for _, p := range paragraphParents {
- if "i" == p.Type {
+ if "i" == p.Type || "h" == p.Type {
linkRefs = append(linkRefs, fromSQLBlock(p, keyword, beforeLen))
processedParagraphs.Add(p.ID)
}