An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 调整数据同步接入第三方存储服务 https://github.com/siyuan-note/siyuan/issues/6530
Liang Ding62618945605e
diff --git a/kernel/model/sync.go b/kernel/model/sync.goindex b783a09048..8a1ee28dd9 100644--- a/kernel/model/sync.go+++ b/kernel/model/sync.go@@ -378,14 +378,21 @@ func ListCloudSyncDir() (syncDirs []*Sync, hSize string, err error) {for _, d := range dirs {dirSize := d.Size- syncDirs = append(syncDirs, &Sync{+ sync := &Sync{Size: dirSize,- HSize: humanize.Bytes(uint64(dirSize)),+ HSize: "-",Updated: d.Updated,CloudName: d.Name,- })+ }+ if conf.ProviderSiYuan == Conf.Sync.Provider {+ sync.HSize = humanize.Bytes(uint64(dirSize))+ }+ syncDirs = append(syncDirs, sync)+ }+ hSize = "-"+ if conf.ProviderSiYuan == Conf.Sync.Provider {+ hSize = humanize.Bytes(uint64(size))}- hSize = humanize.Bytes(uint64(size))return}