Merge branch 'quote-inline' into 'develop'

StatusContent: delete inline quote from markup

See merge request soapbox-pub/soapbox-fe!1003
This commit is contained in:
Alex Gleason 2022-01-24 23:45:21 +00:00
commit f5cc2c039e

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