aboutsummaryrefslogtreecommitdiff
path: root/imgs.go
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2023-01-20 00:46:23 +0100
committerJulian Hurst <ark@mansus.space>2023-01-20 00:46:23 +0100
commit9b3e906a0ab6592eda40ae043bfff26ca07fe80d (patch)
tree44773c0a039902f6451ed2cf44f5587572b0f83f /imgs.go
parentde64b0433c42306c4d6d55a926e53d64f96ec51c (diff)
downloaddocspace-9b3e906a0ab6592eda40ae043bfff26ca07fe80d.tar.gz
Multisession shitmulti
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)