From b7fcf73684ec6413e2c3882288c5464a77ee1922 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 15 Jan 2024 04:15:24 +0200 Subject: [PATCH] fix last commit --- 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 120e05a88..76a2ea794 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -556,7 +556,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 i]')) and v.id != SNAPPY_ID + has_transform = bool(soup.select('[style*=transform i]')) and not (v and v.id == SNAPPY_ID) links = soup.find_all("a")