This commit is contained in:
Daniel 2024-12-09 23:16:39 +08:00
parent 29d2a9218c
commit d866dbf98a
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -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) buildBacklinkListItemRefs(&ret.RefIDs)
ret.RefCount = len(ret.RefIDs) // 填充块引计数 ret.RefCount = len(ret.RefIDs) // 填充块引计数
@ -163,7 +163,7 @@ func GetDocsInfo(blockIDs []string, queryRefCount bool, queryAv bool) (rets []*B
} }
} }
if queryRefCount { if queryRefCount {
ret.RefIDs, _ = sql.QueryRefIDsByDefID(blockID, false) ret.RefIDs, _ = sql.QueryRefIDsByDefID(blockID, Conf.Editor.BacklinkContainChildren)
ret.RefCount = len(ret.RefIDs) // 填充块引计数 ret.RefCount = len(ret.RefIDs) // 填充块引计数
} }