From a8f97344000f08d371fff382a99a81981fd15a2d Mon Sep 17 00:00:00 2001 From: Sol Fisher Romanoff Date: Wed, 13 Jul 2022 20:59:41 +0300 Subject: [PATCH] Don't greentext MFM --- src/components/rich_content/rich_content.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx index 28317225..342bb1e5 100644 --- a/src/components/rich_content/rich_content.jsx +++ b/src/components/rich_content/rich_content.jsx @@ -70,6 +70,11 @@ export default { }, // NEVER EVER TOUCH DATA INSIDE RENDER render () { + // Don't greentext MFM + if (this.mfm) { + this.greentext = false + } + // Pre-process HTML const { newHtml: html } = preProcessPerLine(this.html, this.greentext) let currentMentions = null // Current chain of mentions, we group all mentions together