🎨 Improve list item, super block and blockquote backlink propagation https://github.com/siyuan-note/siyuan/issues/13776

This commit is contained in:
Daniel 2025-01-12 01:07:55 +08:00
parent 87f3047174
commit 970b82a718
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 10 additions and 4 deletions

View file

@ -1114,6 +1114,14 @@ func getDoc(c *gin.Context) {
if nil != isBacklinkArg {
isBacklink = isBacklinkArg.(bool)
}
originalRefBlockIDsArg := arg["originalRefBlockIDs"]
originalRefBlockIDs := map[string]string{}
if nil != originalRefBlockIDsArg {
m := originalRefBlockIDsArg.(map[string]interface{})
for k, v := range m {
originalRefBlockIDs[k] = v.(string)
}
}
highlightArg := arg["highlight"]
highlight := true
if nil != highlightArg {
@ -1121,7 +1129,7 @@ func getDoc(c *gin.Context) {
}
blockCount, content, parentID, parent2ID, rootID, typ, eof, scroll, boxID, docPath, isBacklinkExpand, keywords, err :=
model.GetDoc(startID, endID, id, index, query, queryTypes, queryMethod, mode, size, isBacklink, highlight)
model.GetDoc(startID, endID, id, index, query, queryTypes, queryMethod, mode, size, isBacklink, originalRefBlockIDs, highlight)
if model.ErrBlockNotFound == err {
ret.Code = 3
return