From b4f082da0d3879f56dda7d9f3584abaa25b28532 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 16 Jan 2022 01:23:36 +0200 Subject: [PATCH] b --- files/helpers/sanitize.py | 2 +- files/templates/comments.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index a4bcdb50c..62bf6c4ff 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -159,7 +159,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False): tag["data-src"] = tag["src"] tag["src"] = "/static/assets/images/loading.webp" tag['alt'] = f'![]({tag["data-src"]})' - tag["onclick"] = f"expandDesktopImage(this.dataset.src);" + tag["onclick"] = f"expandDesktopImage(this.src);" tag["data-bs-toggle"] = "modal" tag["data-bs-target"] = "#expandImageModal" diff --git a/files/templates/comments.html b/files/templates/comments.html index 89193ced2..3d9921289 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -848,7 +848,7 @@ {% if v %} - + {% endif %}