3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Fix code block escape in embed edit logs

This commit is contained in:
Miikka 2019-05-03 14:36:55 +03:00 committed by GitHub
parent 6adcd1b583
commit 8d73e1160f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,7 +205,7 @@ export class LogsPlugin extends ZeppelinPlugin<ILogsPluginConfig> {
// 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) {