From 9562b858a4ff8d58b25f957d98826d87a2cecfa0 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 5 Dec 2021 01:07:47 +0200 Subject: [PATCH] fdsfds] --- files/helpers/sanitize.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 034b0394d..17d1bc03b 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -138,7 +138,8 @@ def sanitize(sanitized, noimages=False): link["href"] = tag["src"] if site not in link["href"] and not link["href"].startswith('/'): link["rel"] = "nofollow noopener noreferrer" link["target"] = "_blank" - link["onclick"] = f"expandDesktopImage('{tag['data-src']}');" + # link["onclick"] = f"expandDesktopImage('{tag['data-src']}');" + link["onclick"] = f"expandDesktopImage('{tag['src']}');" link["data-bs-toggle"] = "modal" link["data-bs-target"] = "#expandImageModal"