From c7751d1bba04273c7aca2d0d5cccbd0e65109068 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 25 Feb 2024 00:53:09 +0200 Subject: [PATCH] remove unneeded instance of 'source' --- 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 35da53bb1..0c60742ce 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -843,7 +843,7 @@ def complies_with_chud(obj): #check for chud_phrase in body_html if old_body_html: - excluded_tags = {'del','sub','sup','marquee','spoiler','lite-youtube','video','source','audio'} + excluded_tags = {'del','sub','sup','marquee','spoiler','lite-youtube','video','audio'} soup = BeautifulSoup(old_body_html, 'lxml') tags = soup.html.body.find_all(lambda tag: tag.name not in excluded_tags and not tag.attrs, recursive=False) for tag in tags: