diff --git a/server/routes/profile.js b/server/routes/profile.js index 26f26c259..5f04ef7a3 100644 --- a/server/routes/profile.js +++ b/server/routes/profile.js @@ -264,7 +264,7 @@ router.post('/profile/save', handleErrorAsync(async (req, res) => { if (sus.length && !await hasAutomatedReports(req.db, req.user.id)) { await req.db.get(SQL` INSERT INTO reports (id, userId, reporterId, isAutomatic, comment, isHandled, snapshot) - VALUES (${ulid()}, ${req.user.id}, null, 1, ${sus.join(', ')}, 0, ${await profilesSnapshot(req.db, normalise(req.params.username))}); + VALUES (${ulid()}, ${req.user.id}, null, 1, ${sus.join(', ')}, 0, ${await profilesSnapshot(req.db, normalise(req.user.username))}); `); }