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

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

Loading…
Cancel
Save