Skip to content

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

:art: Block data sync to Attribute View https://github.com/siyuan-note/siyuan/issues/8696

Daniel8ad17328963f
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go
index 4ce7886908..aef447dbdb 100644
--- a/kernel/model/transaction.go
+++ b/kernel/model/transaction.go
@@ -1222,11 +1222,7 @@ func refreshDynamicRefTexts(updatedDefNodes map[string]*ast.Node, updatedTrees m
if changedAv {
av.SaveAttributeView(attrView)
- evt := util.NewCmdResult("refreshAttributeView", 0, util.PushModeBroadcast)
- evt.Data = map[string]interface{}{
- "id": avID,
- }
- util.PushEvent(evt)
+ util.BroadcastByType("protyle", "refreshAttributeView", 0, "", map[string]interface{}{"id": avID})
}
}
}