Skip to content

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

:technologist: https://github.com/siyuan-note/siyuan/issues/16654#issuecomment-3688778549

Daniel9d169abdd865
diff --git a/kernel/api/asset.go b/kernel/api/asset.go
index 16ef7933fd..c2827bfa83 100644
--- a/kernel/api/asset.go
+++ b/kernel/api/asset.go
@@ -435,7 +435,14 @@ func uploadCloudByAssetsPaths(c *gin.Context) {
return
}
- util.PushMsg(fmt.Sprintf(model.Conf.Language(41), count), 3000)
+ ignorePushMsg := false
+ if nil != arg["ignorePushMsg"] {
+ ignorePushMsg = arg["ignorePushMsg"].(bool)
+ }
+
+ if !ignorePushMsg {
+ util.PushMsg(fmt.Sprintf(model.Conf.Language(41), count), 3000)
+ }
}
func insertLocalAssets(c *gin.Context) {