From d866dbf98ae9b95b4553a0f3ed1695dc74404ea7 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 9 Dec 2024 23:16:39 +0800 Subject: [PATCH] :art: Improve floating window backlink https://github.com/siyuan-note/siyuan/issues/13371 --- kernel/model/blockinfo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/model/blockinfo.go b/kernel/model/blockinfo.go index 760d74b9e..8d48c6435 100644 --- a/kernel/model/blockinfo.go +++ b/kernel/model/blockinfo.go @@ -90,7 +90,7 @@ func GetDocInfo(blockID string) (ret *BlockInfo) { } } - ret.RefIDs, _ = sql.QueryRefIDsByDefID(blockID, false) + ret.RefIDs, _ = sql.QueryRefIDsByDefID(blockID, Conf.Editor.BacklinkContainChildren) buildBacklinkListItemRefs(&ret.RefIDs) ret.RefCount = len(ret.RefIDs) // 填充块引计数 @@ -163,7 +163,7 @@ func GetDocsInfo(blockIDs []string, queryRefCount bool, queryAv bool) (rets []*B } } if queryRefCount { - ret.RefIDs, _ = sql.QueryRefIDsByDefID(blockID, false) + ret.RefIDs, _ = sql.QueryRefIDsByDefID(blockID, Conf.Editor.BacklinkContainChildren) ret.RefCount = len(ret.RefIDs) // 填充块引计数 }