fix id encoding

This commit is contained in:
Umputun
2018-03-07 22:16:25 -06:00
parent 2a16609bf7
commit 438652630d
+1 -1
View File
@@ -58,7 +58,7 @@ func (p *AvatarProxy) Put(u store.User) (avatarURL string, err error) {
if _, err := strconv.ParseUint(u.ID, 16, 64); err != nil {
encID = rest.EncodeID(u.ID)
}
location := p.location(u.ID) // location adds partion to path
location := p.location(encID) // location adds partion to path
if _, err = os.Stat(location); os.IsNotExist(err) {
if e := os.Mkdir(location, 0700); e != nil {