An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Fix typo
Liang Ding1acfe5309833
diff --git a/kernel/model/osssync.go b/kernel/model/osssync.goindex 010c49b311..572938a605 100644--- a/kernel/model/osssync.go+++ b/kernel/model/osssync.go@@ -723,7 +723,7 @@ func cloudUpsertRemoveListOSS(localDirPath string, cloudFileList map[string]*Cloignores := syncIgnoreList.Values()for _, p := range ignores {relPath := p.(string)- relPath = pathSha246(relPath, "/")+ relPath = pathSha256Short(relPath, "/")relPath = filepath.Join(localDirPath, relPath)excludes[relPath] = true}diff --git a/kernel/model/sync.go b/kernel/model/sync.goindex fc267d2be6..ba3f4e4c73 100644--- a/kernel/model/sync.go+++ b/kernel/model/sync.go@@ -792,7 +792,7 @@ func prepareSyncData(passwd string, unchangedList map[string]bool) (encryptedDatp := plainPif !strings.HasPrefix(plainP, ".siyuan") { // 配置目录下都用明文,其他文件需要映射文件名- p = pathSha246(p, string(os.PathSeparator))+ p = pathSha256Short(p, string(os.PathSeparator))}metaJSON[filepath.ToSlash(p)] = filepath.ToSlash(plainP)@@ -935,7 +935,7 @@ func unchangedSyncList() (ret map[string]bool, removes []string, err error) {ignores := syncIgnoreList.Values()for _, p := range ignores {relPath := p.(string)- relPath = pathSha246(relPath, "/")+ relPath = pathSha256Short(relPath, "/")relPath = filepath.Join(syncDir, relPath)excludes[relPath] = true}@@ -956,7 +956,7 @@ func unchangedSyncList() (ret map[string]bool, removes []string, err error) {plainP := strings.TrimPrefix(path, util.DataDir+sep)dataP := plainP- dataP = pathSha246(dataP, sep)+ dataP = pathSha256Short(dataP, sep)syncP := filepath.Join(syncDir, dataP)if excludes[syncP] {@@ -1291,7 +1291,7 @@ func getSyncIgnoreList() (ret *hashset.Set) {return}-func pathSha246(p, sep string) string {+func pathSha256Short(p, sep string) string {buf := bytes.Buffer{}parts := strings.Split(p, sep)for i, part := range parts {