From ae36c33ca950b5e468b83d25330cf46ed91a26a1 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 bb875bff98c1a2f00c7544f5d1856a6bbc99cadf 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, }));