From e23b5280498abe64299eb4cbd628b8cd8861e286 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 24 Sep 2023 22:25:12 +0300 Subject: [PATCH] minor improvement --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 454ab915b..3ed11a8a5 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -581,7 +581,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis #doing this here cuz of the linkifyfilter right above it (therefore unifying all link processing logic) soup = BeautifulSoup(sanitized, 'lxml') - has_transform = bool(soup.select('[style*=transform]')) + has_transform = bool(soup.select('[style*=transform i]')) links = soup.find_all("a")