From e4a00ceedc85b8a2141121a91da1250979090969 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sun, 26 Jun 2022 09:35:22 +0200 Subject: [PATCH] Fix ban reason being set to the banned user's username --- app/javascript/retrospring/features/moderation/ban.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/retrospring/features/moderation/ban.ts b/app/javascript/retrospring/features/moderation/ban.ts index 9fd526f4..41449ceb 100644 --- a/app/javascript/retrospring/features/moderation/ban.ts +++ b/app/javascript/retrospring/features/moderation/ban.ts @@ -36,7 +36,7 @@ export function banFormHandler(event: Event): void { if (checkbox && checkbox.checked) { data['ban'] = '1'; - data['reason'] = form.elements['user'].value; + data['reason'] = form.elements['reason'].value; if (!permaCheckbox.checked) { data['duration'] = form.elements['duration'].value.trim();