mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Deduplicate container block backlink https://github.com/siyuan-note/siyuan/issues/13872
This commit is contained in:
@@ -586,7 +586,10 @@ func buildLinkRefs(defRootID string, refs []*sql.Ref, keywords []string) (ret []
|
||||
}
|
||||
}
|
||||
}
|
||||
refsCountDelta := len(paragraphParentIDs)
|
||||
paragraphParentIDs = gulu.Str.RemoveDuplicatedElem(paragraphParentIDs)
|
||||
refsCountDelta -= len(paragraphParentIDs)
|
||||
refsCount -= refsCountDelta
|
||||
sqlParagraphParents := sql.GetBlocks(paragraphParentIDs)
|
||||
paragraphParents := fromSQLBlocks(&sqlParagraphParents, "", 12)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user