Hide recipients inlined by ForceMentionsInContent MRF
This commit is contained in:
parent
f5cc2c039e
commit
35ab65efcf
|
@ -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…
Reference in New Issue