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;
|
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…
Reference in New Issue