From 3f9a0a5feabc1da452bbd59fd639c5df5e157262 Mon Sep 17 00:00:00 2001 From: freamon Date: Sun, 17 Nov 2024 18:55:45 +0000 Subject: [PATCH] replace the 'static' for images hotlinked to fandom sites with 'vignette' --- app/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/utils.py b/app/utils.py index b7357e88..98433e93 100644 --- a/app/utils.py +++ b/app/utils.py @@ -332,6 +332,10 @@ def allowlist_html(html: str, a_target='_blank') -> str: re_embedded_mp3 = re.compile(r'') clean_html = re_embedded_mp3.sub(r'', clean_html) + # replace the 'static' for images hotlinked to fandom sites with 'vignette' + re_fandom_hotlink = re.compile(r'