Skip to content

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

:art: 改进标题下方块和列表项子块引用时的反链定位 https://github.com/siyuan-note/siyuan/issues/7484

Liang Dingf4fd24759857
diff --git a/kernel/model/backlink.go b/kernel/model/backlink.go
index 15f2cfd657..c9e46a59c8 100644
--- a/kernel/model/backlink.go
+++ b/kernel/model/backlink.go
@@ -512,18 +512,7 @@ func buildLinkRefs(defRootID string, refs []*sql.Ref, keyword string) (ret []*Bl
}
}
}
- paragraphParents := sql.GetBlocks(paragraphParentIDs)
- for _, p := range paragraphParents {
- if "i" == p.Type { // || "h" == p.Type 改进标题下方块引用时的反链定位 https://github.com/siyuan-note/siyuan/issues/7484
- processedParagraphs.Add(p.ID)
- if !strings.Contains(p.Content, keyword) {
- refsCount--
- continue
- }
- ret = append(ret, fromSQLBlock(p, "", 12))
- }
- }
for _, link := range links {
for _, ref := range link.Refs {
if "NodeParagraph" == ref.Type {