From 630f583c2ff2201547a55360daeaca888aadd897 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 30 Jan 2022 09:47:31 -0600 Subject: [PATCH] Strip all instances of compat features from statuses --- app/soapbox/utils/html.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/soapbox/utils/html.js b/app/soapbox/utils/html.js index f303ba8e8..9eddcf876 100644 --- a/app/soapbox/utils/html.js +++ b/app/soapbox/utils/html.js @@ -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;