From 90d8a4e3365888d9a732e3c5ec019dd87af5bea0 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 15 Jan 2024 04:14:31 +0200 Subject: [PATCH] fix this https://rdrama.net/post/237162/marseyflaggermany-marseyswastikakrautland-denounces-sefefrica-marseyflagsouthafrica-namibia/5743718#context --- 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 bdb6b793e..120e05a88 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]')) + has_transform = bool(soup.select('[style*=transform i]')) and v.id != SNAPPY_ID links = soup.find_all("a")