From 24df1d827fce35f6df0ac78c1cd76831dadfb384 Mon Sep 17 00:00:00 2001 From: roflmaoqwerty Date: Tue, 21 Jan 2020 22:19:28 +1100 Subject: [PATCH 1/2] fixed a bug where mute reasons were not relayed to the user --- backend/src/plugins/Mutes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Mutes.ts b/backend/src/plugins/Mutes.ts index 567878d8..8a63b6d9 100644 --- a/backend/src/plugins/Mutes.ts +++ b/backend/src/plugins/Mutes.ts @@ -188,7 +188,7 @@ export class MutesPlugin extends ZeppelinPlugin { template && (await renderTemplate(template, { guildName: this.guild.name, - reason: reason || reason === "" ? "None" : reason, + reason: !reason || reason === "" ? "None" : reason, time: timeUntilUnmute, })); From a37624a50d017fefeca65ab453a61795fcad1b22 Mon Sep 17 00:00:00 2001 From: roflmaoqwerty Date: Tue, 21 Jan 2020 22:34:01 +1100 Subject: [PATCH 2/2] simplified reason assignment --- backend/src/plugins/Mutes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Mutes.ts b/backend/src/plugins/Mutes.ts index 8a63b6d9..0f3c2884 100644 --- a/backend/src/plugins/Mutes.ts +++ b/backend/src/plugins/Mutes.ts @@ -188,7 +188,7 @@ export class MutesPlugin extends ZeppelinPlugin { template && (await renderTemplate(template, { guildName: this.guild.name, - reason: !reason || reason === "" ? "None" : reason, + reason: reason || "None", time: timeUntilUnmute, }));