From c3a82cb7771b466cefcb0c8bb6b610017f1c10b2 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 24 Jan 2022 17:31:34 -0600 Subject: [PATCH] StatusContent: delete inline quote from markup --- app/soapbox/components/status_content.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/soapbox/components/status_content.js b/app/soapbox/components/status_content.js index 717071a5c..9aa8b2486 100644 --- a/app/soapbox/components/status_content.js +++ b/app/soapbox/components/status_content.js @@ -75,6 +75,17 @@ class StatusContent extends React.PureComponent { } } + deleteInlineQuote() { + const node = this.node; + if (!node) return; + + const inlineQuote = node.querySelector('.quote-inline'); + + if (inlineQuote) { + inlineQuote.remove(); + } + } + setCollapse() { const node = this.node; @@ -106,6 +117,7 @@ class StatusContent extends React.PureComponent { refresh = () => { this.setCollapse(); this._updateStatusLinks(); + this.deleteInlineQuote(); this.setOnlyEmoji(); }