From 44b30048e443711451b3676ba6c6b3b722d6505f Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 9 Aug 2023 12:28:21 +0300 Subject: [PATCH] scratch that, just make the fraud impossible --- files/helpers/sanitize.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index b6cd9b992..5f8724324 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -493,6 +493,10 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis a.string = tag["src"] tag.replace_with(a) continue + + del tag["g"] + del tag["glow"] + del tag["party"] tag["loading"] = "lazy" tag["data-src"] = tag["src"]