From 7380ffc3bcdc526d594e7b9d1c21e819dcd04b0f Mon Sep 17 00:00:00 2001 From: Izie <238573415+IzieStratt@users.noreply.github.com> Date: Tue, 29 Sep 2026 19:44:26 -0400 Subject: [PATCH 1/3] mrrrp, leaf! --- lib/web/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web/api.js b/lib/web/api.js index 8a100e5..55cc4b4 100644 --- a/lib/web/api.js +++ b/lib/web/api.js @@ -102,7 +102,7 @@ function deletionReason(value) { } const reason = String(value ?? "") - .replace(/[<>]/g, "") + .replace(/<@([A-Z0-9]+)>|[<>]/g, (match, userId) => userId ? match : "") .trim(); if (!reason) throw new Error("A reason is required, and is recorded in the audit log."); if (reason.length > 500) { From 8266e33341f9d343ad8b7e536a9baf274d056169 Mon Sep 17 00:00:00 2001 From: Izie <238573415+IzieStratt@users.noreply.github.com> Date: Wed, 30 Sep 2026 17:36:35 -0400 Subject: [PATCH 2/3] Format deletionReason replacement --- lib/web/api.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/web/api.js b/lib/web/api.js index 55cc4b4..c7f5052 100644 --- a/lib/web/api.js +++ b/lib/web/api.js @@ -102,7 +102,10 @@ function deletionReason(value) { } const reason = String(value ?? "") - .replace(/<@([A-Z0-9]+)>|[<>]/g, (match, userId) => userId ? match : "") + .replace( + /<@([A-Z0-9]+)>|[<>]/g, + (match, userId) => (userId ? match : ""), + ) .trim(); if (!reason) throw new Error("A reason is required, and is recorded in the audit log."); if (reason.length > 500) { From b7fad57367a6b3cec4cfae4f35dab95761be607a Mon Sep 17 00:00:00 2001 From: Izie <238573415+IzieStratt@users.noreply.github.com> Date: Wed, 30 Sep 2026 17:37:46 -0400 Subject: [PATCH 3/3] mrrrp, leaf! --- lib/web/api.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/web/api.js b/lib/web/api.js index c7f5052..6357eda 100644 --- a/lib/web/api.js +++ b/lib/web/api.js @@ -102,10 +102,7 @@ function deletionReason(value) { } const reason = String(value ?? "") - .replace( - /<@([A-Z0-9]+)>|[<>]/g, - (match, userId) => (userId ? match : ""), - ) + .replace(/<@([A-Z0-9]+)>|[<>]/g, (match, userId) => (userId ? match : "")) .trim(); if (!reason) throw new Error("A reason is required, and is recorded in the audit log."); if (reason.length > 500) {