Hide recipients inlined by ForceMentionsInContent MRF

merge-requests/1004/head
Alex Gleason 3 years ago
parent f5cc2c039e
commit 35ab65efcf
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -75,15 +75,15 @@ class StatusContent extends React.PureComponent {
}
}
deleteInlineQuote() {
stripCompatibilityFeatures() {
const node = this.node;
if (!node) return;
const inlineQuote = node.querySelector('.quote-inline');
const inlineRecipients = node.querySelector('.recipients-inline');
if (inlineQuote) {
inlineQuote.remove();
}
if (inlineQuote) inlineQuote.remove();
if (inlineRecipients) inlineRecipients.remove();
}
setCollapse() {
@ -117,7 +117,7 @@ class StatusContent extends React.PureComponent {
refresh = () => {
this.setCollapse();
this._updateStatusLinks();
this.deleteInlineQuote();
this.stripCompatibilityFeatures();
this.setOnlyEmoji();
}

@ -825,7 +825,8 @@ a.status-card.compact:hover {
/* Fedibird quote post compatibility */
.status__content,
.quoted-status__content {
.quote-inline {
.quote-inline,
.recipients-inline {
display: none;
}
}

Loading…
Cancel
Save