mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-25 14:09:03 -04:00
[bug] fix autoreporting
This commit is contained in:
parent
96654799b9
commit
4ddc41ba29
@ -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))});
|
||||
`);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user