Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

feat: add {uuid} in path template when using local storage or S3 (#2696)

Elliot Chen3181c076b254
diff --git a/api/v1/resource.go b/api/v1/resource.go
index f8935d1be..4297819c8 100644
--- a/api/v1/resource.go
+++ b/api/v1/resource.go
@@ -354,6 +354,8 @@ func replacePathTemplate(path, filename string) string {
return fmt.Sprintf("%02d", t.Minute())
case "{second}":
return fmt.Sprintf("%02d", t.Second())
+ case "{uuid}":
+ return util.GenUUID()
}
return s
})