Skip to content

Commit

Permalink
🎨 Improve list item, super block and blockquote backlink propagation #…
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jan 11, 2025
1 parent c3579b2 commit 042b5e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions kernel/model/blockinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ func GetDocInfo(blockID string) (ret *BlockInfo) {
}

ret.RefIDs, _ = sql.QueryRefIDsByDefID(blockID, Conf.Editor.BacklinkContainChildren)
originalRefBlockIDs := map[string]string{}
// TODO
buildBacklinkListItemRefs(&ret.RefIDs, &originalRefBlockIDs)
buildBacklinkListItemRefs(&ret.RefIDs, &map[string]string{})
ret.RefCount = len(ret.RefIDs) // 填充块引计数

// 填充属性视图角标 Display the database title on the block superscript https://github.com/siyuan-note/siyuan/issues/10545
Expand Down
2 changes: 1 addition & 1 deletion kernel/model/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ func GetDoc(startID, endID, id string, index int, query string, queryTypes map[s
if isBacklink {
// 引用计数浮窗请求,需要按照反链逻辑组装 https://github.com/siyuan-note/siyuan/issues/6853
originalRefBlockIDs := map[string]string{}
// TODO
// TODO 需要增加参数,使用 getRefIDs 返回的 originalRefBlockIDs 增加这个参数后才能支持计数浮窗内计算折叠状态 https://github.com/siyuan-note/siyuan/issues/13776
nodes, isBacklinkExpand = getBacklinkRenderNodes(node, originalRefBlockIDs)
} else {
// 如果同时存在 startID 和 endID,并且是动态加载的情况,则只加载 startID 和 endID 之间的块 [startID, endID]
Expand Down

0 comments on commit 042b5e7

Please sign in to comment.