Merge branch 'fedibird-rt-fix' into 'develop'
Strip all instances of compat features from statuses See merge request soapbox-pub/soapbox-fe!1016
This commit is contained in:
commit
26961b8445
|
@ -14,12 +14,11 @@ export const stripCompatibilityFeatures = html => {
|
|||
'.recipients-inline',
|
||||
];
|
||||
|
||||
// Remove all instances of all selectors
|
||||
selectors.forEach(selector => {
|
||||
const elem = node.querySelector(selector);
|
||||
|
||||
if (elem) {
|
||||
node.querySelectorAll(selector).forEach(elem => {
|
||||
elem.remove();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
return node.innerHTML;
|
||||
|
|
Loading…
Reference in New Issue