From 7e260a8740f7af7cf68c2d5641418074ca2ad245 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 7 Jun 2023 22:47:14 +0300 Subject: [PATCH] stop using 200w since it makes reading text in gifs impossible unless u expand --- 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 a6fc54869a..6104253cef 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -435,7 +435,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_emojis= tag = tag.replace_with(a) a.append(tag) - tag["data-src"] = tag["data-src"].replace('/giphy.webp', '/200w.webp') + tag["data-src"] = tag["data-src"] sanitized = str(soup).replace('','').replace('','').replace('/>','>')