aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/upload.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/upload.js b/lib/upload.js
index 8d1c85ef..95dfe21a 100644
--- a/lib/upload.js
+++ b/lib/upload.js
@@ -32,7 +32,7 @@ app.post("/upload/:type", auth, async function(req, res) {
if (format !== "image" && !["jpg", "jpeg", "png"].includes(ext))
throw new Error("unsupported file type");
- let name = `${req.user.username}-${type}.webp`;
+ let name = `${req.user.uuid}-${type}.webp`;
let path = `/app/uploads/${name}`;
let size = type === "banner" ? 1920 : 240;