StatusContent: delete inline quote from markup

This commit is contained in:
Alex Gleason 2022-01-24 17:31:34 -06:00
parent 2d5acc3236
commit c3a82cb777
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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() { setCollapse() {
const node = this.node; const node = this.node;
@ -106,6 +117,7 @@ class StatusContent extends React.PureComponent {
refresh = () => { refresh = () => {
this.setCollapse(); this.setCollapse();
this._updateStatusLinks(); this._updateStatusLinks();
this.deleteInlineQuote();
this.setOnlyEmoji(); this.setOnlyEmoji();
} }