aboutsummaryrefslogtreecommitdiff
path: root/imgs.go
diff options
context:
space:
mode:
Diffstat (limited to 'imgs.go')
-rw-r--r--imgs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/imgs.go b/imgs.go
index c1be6bc..e0495a0 100644
--- a/imgs.go
+++ b/imgs.go
@@ -26,7 +26,7 @@ func imgs(w http.ResponseWriter, r *http.Request) {
sendError(w, r, err.Error(), http.StatusInternalServerError)
return
}
- userDocPath := filepath.Join(baseDocDir, u.User)
+ userDocPath := filepath.Join(baseDocDir, u.Username)
err = os.Mkdir(userDocPath, 0750)
if err != nil && !os.IsExist(err) {
sendError(w, r, err.Error(), http.StatusInternalServerError)