Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 支持引用转移 https://github.com/siyuan-note/siyuan/issues/4025

Liang Dinge15f8f776919
diff --git a/kernel/model/block.go b/kernel/model/block.go
index 3671827a6f..71c5c83e27 100644
--- a/kernel/model/block.go
+++ b/kernel/model/block.go
@@ -139,7 +139,7 @@ func TransferBlockRef(fromID, toID string) (err error) {
for _, textMark := range textMarks {
if textMark.IsTextMarkType("block-ref") && textMark.TextMarkBlockRefID == fromID {
textMark.TextMarkBlockRefID = toID
- if "s" == textMark.TextMarkBlockRefSubtype {
+ if "d" == textMark.TextMarkBlockRefSubtype {
textMark.TextMarkTextContent = toRefText
}
}
@@ -149,6 +149,7 @@ func TransferBlockRef(fromID, toID string) (err error) {
return
}
}
+ util.ReloadUI()
return
}