From 8d73e1160fc1dd4a04f34f84926d34d31095ba10 Mon Sep 17 00:00:00 2001 From: Miikka <2606411+Dragory@users.noreply.github.com> Date: Fri, 3 May 2019 14:36:55 +0300 Subject: [PATCH] Fix code block escape in embed edit logs --- src/plugins/Logs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/Logs.ts b/src/plugins/Logs.ts index 00dad00b..75e5a8c7 100644 --- a/src/plugins/Logs.ts +++ b/src/plugins/Logs.ts @@ -205,7 +205,7 @@ export class LogsPlugin extends ZeppelinPlugin { // Rich embed const richEmbed = (msg.data.embeds || []).find(e => (e as Embed).type === "rich"); - if (richEmbed) result += "Embed:```" + JSON.stringify(richEmbed) + "```"; + if (richEmbed) result += "Embed:```" + disableCodeBlocks(JSON.stringify(richEmbed)) + "```"; // Attachments if (msg.data.attachments) {