Skip to content

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

:art: Clean code

Daniel8b63066430ea
diff --git a/kernel/model/backlink.go b/kernel/model/backlink.go
index ec81e89517..1886f00015 100644
--- a/kernel/model/backlink.go
+++ b/kernel/model/backlink.go
@@ -245,7 +245,6 @@ func GetBacklink2(id, keyword, mentionKeyword string, sortMode, mentionSortMode
linkRefs, linkRefsCount, excludeBacklinkIDs := buildLinkRefs(rootID, refs, keyword)
tmpBacklinks := toFlatTree(linkRefs, 0, "backlink", nil)
-
for _, l := range tmpBacklinks {
l.Blocks = nil
backlinks = append(backlinks, l)